Get-ChildItem is a powershell cmdlet that gets the items and child items in one or more specified locations.
Get-ChildItem is a powershell cmdlet that gets the items and child items in one or more specified locations. If the item is a container, it gets the items inside the container, known as child items. You can use the Recurse parameter to get items in all child containers.
A location can be a file system location, such as a directory, or a location exposed by a different Windows PowerShell provider, such as a registry hive or a certificate store.
Output
System.Object
The type of object that Get-ChildItem returns is determined by the objects in the provider drive path.System.String
If you use the Name parameter, Get-ChildItem returns the object names as strings.