I was working on some code the other day and as a block of code I needed was very similar to one I already had I did what everyone does & used cut and paste. Unfortunately, I missed out changing one of the variable names in the new block and spent a long time working out what had gone wrong.
Moral of the story – be careful how you copy code
under: PowerShell