by Dec 10, 2012

To protect you from damages while playing with PowerShell on a productive system, set the ”WhatIf” mode as default:


Now, instead of actively enabling the simulation mode by adding –WhatIf to a cmdlets’ parameter list, it is the other way around: any cmdlet that changes the system will only pretend. If you do want to make changes, add this parameter to the cmdlet:


Twitter This Tip! ReTweet this Tip!