← Learn
Safe
Get-ChildItem C:\inetpub\logs -Recurse -Filter *.log

windows · powershell · Beginner

Lists IIS log files beneath a directory. Get-ChildItem is PowerShell's directory listing; -Recurse widens what is read and -Filter narrows it, and neither opens a file for writing.

Think you can spot these under time pressure?

Start Training

More Windows