Co-Authored By:

Asked by: Gerda Rittermann
technology and computing data storage and warehousingWhat is GCI in PowerShell?
Furthermore, what is ChildItem in PowerShell?
Description. The Get-ChildItem cmdlet gets theitems in one or more specified locations. If the item is acontainer, it gets the items inside the container, known as childitems. Locations are exposed to Get-ChildItem byPowerShell providers.
In this manner, what is $_ in PowerShell?
$_ represents the current object on the pipeline– if you want to know why $_ was chosen you'll have toread PowerShell in Action! To recap $_ (or $psitem)is used to represent the current object on the pipeline. You can usit in commands that are performing an action on every object on thepipeline.
Summary of PowerShell-Recurse -Recurse is a classic switch, which instructsPowerShell commands such as Get-ChildItem to repeat in subdirectories. Once you remember that -Recurse comes directlyafter the directory, then it will serve you well in scripts thatneed to drill down to find information.