Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find What a PowerShell Command Does

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles