PowerShell Scripting Tip: Choose your tests carefully

There’s a lot that can be achieved in a little bit of PowerShell (a single (pipe)line, even), and that brings with it a tendency to throw a solution together quickly. As the saying goes, though, with great power comes great responsibility, so you need to be careful. Using -whatif and -confirm can help you to avoid hanging yourself, but you also need to do more thorough testing before you put a script into production (and yes, I’m talking to myself as much as anyone else here). For example, I have tripped over a problem (and I know others who have … Continue reading PowerShell Scripting Tip: Choose your tests carefully