[Click on image for larger view.] Figure 1. Using builtin -WhatIf functionality to prevent outages. Good thing I just didn't let it run without some training wheels. As you can see, instead of just ...
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.