TONYSO

Tonyso Credo: "Look for a pattern, and solve it for everything"

PowerShell How To: Add -whatiff to your scripts

PowerShell How To: Add -whatiff to your scripts

  • Comments 1
  • Likes
Wouldn't it be great if your scripts had a "read-only " mode that would allow you to test them without actually implementing changes? PowerShell call this "-whatif". Jeffrey Snover's Supporting -Whatif, -Confirm, -Verbose – In SCRIPTS! blog post tells you how to do this in your scripts.

Check it out and follow Jeff's advice "Use this often – it works great."

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment