•Arnošt Havelka
List Files with Parameters in PowerShell
Use Get-ChildItem parameters to inspect files and folders.
Start Interactive LessonThe Get-ChildItem cmdlet accepts parameters that change which files and folders it shows.
Understanding Get-ChildItem Parameters
Try the command
Try different Get-ChildItem parameters!
Build the command
Get-ChildItem[arguments]
Get-ChildItem
Terminal
PS C:\Users\Student>Get-ChildItem -Force
Documents
Downloads
Desktop
welcome.txt
file1.txt
Inspecting a Directory
Terminal
photos
documents.txt
readme.txt
PS C:\Users\Student\Documents\ForceListDemo>Get-ChildItem
Knowledge Check
1 / 1Which parameter includes hidden and system items?
References
These documentation links provide authoritative details for the commands used in this article.
Up Next
Discover Commands with Get-Command
Find PowerShell commands using Get-Command.