Reputation: 3
I was auditing all file content on users and is using the PowerShell command to get childitems but would like to see the options that will pause the results and wait for me to press any key to continue.
Get-Childitem -Recurse |
Upvotes: 0
Views: 701
Reputation: 5452
In PowerShell Command Line you can pipe your command through more
or Out-Host -Paging
Get-ChildItem -Recurse | Out-Host -Paging
#Alias version
gci -rec | oh -Paging
Each page will show with the last line as:
<SPACE> next page; <CR> next line; Q quit
Allowing you to page through the output.
This link gives more information, it seems like it is not possible in the scripting environment: Out-Host -Paging error "The method or operation is not implemented. " (ISE)
Upvotes: 1