O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 pop-up box

Create an instance of the wshShell object by using the New-Object cmdlet. Use the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required