Skip to content

Commit ac8052b

Browse files
Merge pull request #12818 from MicrosoftDocs/main
Auto Publish – main to live - 2026-03-05 23:00 UTC
2 parents 3e2b40d + 101945d commit ac8052b

File tree

4 files changed

+52
-12
lines changed

4 files changed

+52
-12
lines changed

reference/5.1/Microsoft.PowerShell.Security/New-FileCatalog.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Security.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Security
5-
ms.date: 05/29/2024
5+
ms.date: 03/05/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-5.1&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: 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
96106
Type: System.String[]

reference/7.4/Microsoft.PowerShell.Security/New-FileCatalog.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Security.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Security
5-
ms.date: 05/29/2024
5+
ms.date: 03/05/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-7.4&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: 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
98108
Type: System.String[]

reference/7.5/Microsoft.PowerShell.Security/New-FileCatalog.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Security.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Security
5-
ms.date: 05/29/2024
5+
ms.date: 03/05/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-7.5&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: 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
98108
Type: System.String[]

reference/7.6/Microsoft.PowerShell.Security/New-FileCatalog.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.Security.dll-Help.xml
33
Locale: en-US
44
Module Name: Microsoft.PowerShell.Security
5-
ms.date: 05/29/2024
5+
ms.date: 03/05/2026
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.security/new-filecatalog?view=powershell-7.6&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
title: 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
98108
Type: System.String[]

0 commit comments

Comments
 (0)