22external help file : Microsoft.PowerShell.Commands.Management.dll-Help.xml
33Locale : en-US
44Module Name : Microsoft.PowerShell.Management
5- ms.date : 02/26 /2025
5+ ms.date : 12/17 /2025
66online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.6&WT.mc_id=ps-gethelp
77schema : 2.0.0
88aliases :
@@ -42,9 +42,6 @@ container, it gets the items inside the container, known as child items. You can
4242parameter to get items in all child containers and use the ** Depth** parameter to limit the number
4343of levels to recurse.
4444
45- ` Get-ChildItem ` doesn't display empty directories. When a ` Get-ChildItem ` command includes the
46- ** Depth** or ** Recurse** parameters, empty directories aren't included in the output.
47-
4845The ` Get-ChildItem ` cmdlet is designed to work with the items exposed by any provider. For example,
4946items can be a file system file or directory, registry hive, or a certificate store. To list the
5047providers available in your session, use the ` Get-PSProvider ` command. Some parameters are only
@@ -55,9 +52,9 @@ available for a specific provider. For more information, see
5552
5653### Example 1: Get child items from a file system directory
5754
58- This example gets the child items from a file system directory. The filenames and subdirectory
59- names are displayed. For empty locations, the command doesn't return any output and returns to the
60- PowerShell prompt.
55+ This example gets the child items from a file system directory. The filenames and subdirectory names
56+ are displayed. For empty locations (directories or folders) , the command doesn't return any output
57+ and returns to the PowerShell prompt.
6158
6259The ` Get-ChildItem ` cmdlet uses the ** Path** parameter to specify the directory ` C:\Test ` .
6360` Get-ChildItem ` displays the files and directories in the PowerShell console.
@@ -90,7 +87,7 @@ as follows:
9087- ` s ` (system)
9188
9289For more information about the mode flags, see
93- [ about_FileSystem_Provider] ( ../Microsoft.PowerShell.Core/About/about_Filesystem_Provider .md#attributes-flagsexpression ) .
90+ [ about_FileSystem_Provider] ( ../Microsoft.PowerShell.Core/About/about_FileSystem_Provider .md#attributes-flagsexpression ) .
9491
9592### Example 2: Get child item names in a directory
9693
@@ -995,7 +992,7 @@ The cmdlet outputs this type when accessing the `Env:` drive.
995992
996993# ## System.IO.FileInfo
997994
998- The cmdlet outputs these types when accessing the Filesystem drives.
995+ The cmdlet outputs these types when accessing the FileSystem drives.
999996
1000997# ## System.Management.Automation.FunctionInfo
1001998
0 commit comments