File tree Expand file tree Collapse file tree 4 files changed +52
-12
lines changed
5.1/Microsoft.PowerShell.Security
7.4/Microsoft.PowerShell.Security
7.5/Microsoft.PowerShell.Security
7.6/Microsoft.PowerShell.Security Expand file tree Collapse file tree 4 files changed +52
-12
lines changed Original file line number Diff line number Diff line change 22external help file : Microsoft.PowerShell.Security.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Security
5- ms.date : 05/29/2024
5+ ms.date : 03/ 05/2026
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-5.1&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : New-FileCatalog
@@ -89,8 +89,18 @@ Accept wildcard characters: False
8989
9090# ## -Path
9191
92- Accepts a path or array of paths to files or folders that should be included in the catalog file. If
93- a folder is specified, the command includes all files in the folder.
92+ Accepts a path or array of paths to files or folders that should be included in the catalog file.
93+ When you specify a folder, the command enumerates the contents of the folder recursively to include
94+ all subfolders and their contents. The catalog file contains relative paths to the files included in
95+ the catalog.
96+
97+ > [!IMPORTANT]
98+ > When you provide a list of files or folders, the cmdlet can't compute a relative path since the
99+ > files and folders can be anywhere on the filesystem. Under this condition, the cmdlet only uses
100+ > the filename for the hash, which means that you can't have duplicate filenames in different paths.
101+ > For the best results, pass in a single folder and let the cmdlet enumerate the contents. The
102+ > cmdlet uses that initial path to calculate relative paths so that duplicate filenames are still
103+ > unique within the folder tree.
94104
95105` ` ` yaml
96106Type: System.String[]
Original file line number Diff line number Diff line change 22external help file : Microsoft.PowerShell.Security.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Security
5- ms.date : 05/29/2024
5+ ms.date : 03/ 05/2026
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-7.4&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : New-FileCatalog
@@ -91,8 +91,18 @@ Accept wildcard characters: False
9191
9292# ## -Path
9393
94- Accepts a path or array of paths to files or folders that should be included in the catalog file. If
95- a folder is specified, the command includes all files in the folder.
94+ Accepts a path or array of paths to files or folders that should be included in the catalog file.
95+ When you specify a folder, the command enumerates the contents of the folder recursively to include
96+ all subfolders and their contents. The catalog file contains relative paths to the files included in
97+ the catalog.
98+
99+ > [!IMPORTANT]
100+ > When you provide a list of files or folders, the cmdlet can't compute a relative path since the
101+ > files and folders can be anywhere on the filesystem. Under this condition, the cmdlet only uses
102+ > the filename for the hash, which means that you can't have duplicate filenames in different paths.
103+ > For the best results, pass in a single folder and let the cmdlet enumerate the contents. The
104+ > cmdlet uses that initial path to calculate relative paths so that duplicate filenames are still
105+ > unique within the folder tree.
96106
97107` ` ` yaml
98108Type: System.String[]
Original file line number Diff line number Diff line change 22external help file : Microsoft.PowerShell.Security.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Security
5- ms.date : 05/29/2024
5+ ms.date : 03/ 05/2026
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-7.5&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : New-FileCatalog
@@ -91,8 +91,18 @@ Accept wildcard characters: False
9191
9292# ## -Path
9393
94- Accepts a path or array of paths to files or folders that should be included in the catalog file. If
95- a folder is specified, the command includes all files in the folder.
94+ Accepts a path or array of paths to files or folders that should be included in the catalog file.
95+ When you specify a folder, the command enumerates the contents of the folder recursively to include
96+ all subfolders and their contents. The catalog file contains relative paths to the files included in
97+ the catalog.
98+
99+ > [!IMPORTANT]
100+ > When you provide a list of files or folders, the cmdlet can't compute a relative path since the
101+ > files and folders can be anywhere on the filesystem. Under this condition, the cmdlet only uses
102+ > the filename for the hash, which means that you can't have duplicate filenames in different paths.
103+ > For the best results, pass in a single folder and let the cmdlet enumerate the contents. The
104+ > cmdlet uses that initial path to calculate relative paths so that duplicate filenames are still
105+ > unique within the folder tree.
96106
97107` ` ` yaml
98108Type: System.String[]
Original file line number Diff line number Diff line change 22external help file : Microsoft.PowerShell.Security.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Security
5- ms.date : 05/29/2024
5+ ms.date : 03/ 05/2026
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-7.6&WT.mc_id=ps-gethelp
77schema : 2.0.0
88title : New-FileCatalog
@@ -91,8 +91,18 @@ Accept wildcard characters: False
9191
9292# ## -Path
9393
94- Accepts a path or array of paths to files or folders that should be included in the catalog file. If
95- a folder is specified, the command includes all files in the folder.
94+ Accepts a path or array of paths to files or folders that should be included in the catalog file.
95+ When you specify a folder, the command enumerates the contents of the folder recursively to include
96+ all subfolders and their contents. The catalog file contains relative paths to the files included in
97+ the catalog.
98+
99+ > [!IMPORTANT]
100+ > When you provide a list of files or folders, the cmdlet can't compute a relative path since the
101+ > files and folders can be anywhere on the filesystem. Under this condition, the cmdlet only uses
102+ > the filename for the hash, which means that you can't have duplicate filenames in different paths.
103+ > For the best results, pass in a single folder and let the cmdlet enumerate the contents. The
104+ > cmdlet uses that initial path to calculate relative paths so that duplicate filenames are still
105+ > unique within the folder tree.
96106
97107` ` ` yaml
98108Type: System.String[]
You can’t perform that action at this time.
0 commit comments