Chapter 1 Quick Reference


Open table as spreadsheet

To

Do This

Use an external command-line utility

Type the name of the command-line utility while inside Windows PowerShell

Use multiple external command-line utilities sequentially

Separate each command-line utility with a semicolon on a single Windows PowerShell line

Obtain a list of running processes

Use the Get-Process cmdlet

Stop a process

Use the Stop-Process cmdlet and specify either the name or the process ID as an argument

Model the effect of a cmdlet before actually performing the requested action

Use the -whatif argument

Instruct Windows PowerShell to startup, run a cmdlet, and then exit

Use the PowerShell command while prefixing the cmdlet with the ampersand sign and enclosing the name of the cmdlet in curly brackets

Prompt for confirmation before stopping a process

Use the Stop-Process cmdlet while specifying the -confirm argument




Microsoft Press - Microsoft Windows PowerShell Step by Step
MicrosoftВ® Windows PowerShell(TM) Step By Step (Step By Step (Microsoft))
ISBN: 0735623953
EAN: 2147483647
Year: 2007
Pages: 128
Authors: Ed Wilson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net