February 10th, 2015

PowerTip: Find What a PowerShell Command Does

Doctor Scripto
Scripter

Summary: Learn how to find out what a Windows PowerShell command does before it does it.

Hey, Scripting Guy! Question I found a Windows PowerShell command on the Internet that might be what I need, but how can I see what
           it does before it messes something up?

Hey, Scripting Guy! Answer You can add the –WhatIf parameter to all Windows PowerShell cmdlets that make changes automatically,
           for example:

Stop-Process –name MYPROCESS -WhatIf

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.