Chapter 2 Quick Reference
To | Do This |
|---|---|
Produce a list of all the files in a folder | Use the Get-ChildItem cmdlet and supply a value for the folder |
Produce a list of all the files in a folder and in the subfolders | Use the Get-ChildItem cmdlet, supply a value for the folder, and specify the recurse argument |
Produce a wide output of the results of a previous cmdlet | Use the appropriate cmdlet and pipe the resulting object to the Format-Wide cmdlet |
Produce a listing of all the methods available from the Get-ChildItem cmdlet | Use the cmdlet and pipe the results into the Get-Member cmdlet. Use the -membertype argument and supply the Noun method |
Produce a popup box | Create an instance of the wshShell object by using the New-Object cmdlet. Use the Popup method |
Retrieve ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access