Get-ChildItem — Basic UsageIT technician command center
PowerShell · Windows Administration

Get-ChildItem — Basic Usage

Use Get-ChildItem for a standard administrative task.

Copy-ready commandGet-ChildItem — Basic Usage
Get-ChildItem C:\Logs -Recurse

Requirements and permissions

Requirements
Windows PowerShell 5.1 or PowerShell 7
Permissions
Varies by command
Last reviewed
2026-07-31

Examples

Basic Usage

Use Get-ChildItem for a standard administrative task.

Get-ChildItem C:\Logs -Recurse

Original command

List files and folders recursively.

Get-ChildItem C:\Logs -Recurse

Common errors

Command not found

Confirm Windows PowerShell 5.1 or PowerShell 7 is installed and available in your current shell.