February 2019
Intermediate to advanced
626 pages
15h 51m
English
The New-FileCatalog command is used to generate (or update) a catalog:
New-FileCatalog -Path <ToWatch> -CatalogFilePath <StateFile>
A hash can only be generated for files that are larger than 0 bytes. However, filenames are recorded irrespective of the size.
The following command creates a file catalog from the files and folders created when exploring permissions:
New-FileCatalog -Path C:\Temp\ACL -CatalogFilePath C:\Temp\Security\example.cat
If the CatalogFilePath had been a directory instead of a file, New-FileCatalog would have automatically created a file named catalog.cat.
Read now
Unlock full access