PowerTip: Find What a PowerShell Command Does

Doctor Scripto

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


Discussion is closed.

Feedback usabilla icon