Forum Discussion
Bosjabouter
Jun 15, 2026Copper Contributor
Get-ChildItem | Write-Host
The command in the title lists all the short names of files and folders in the current folder, whereas `Get-ChildItem * | Write-Host` lists the full names (including paths). I compared the output ...
Charlie34000
Jun 15, 2026MCT
Small addition: -Filter is also the most performant option, because the filtering is done by the provider before PowerShell creates any objects.
That’s why it’s generally preferable when possible.