Thanks for the tips on the script, I’ve made the changes you suggested. It works on Powershell v2 & 3. This is not the first time that v1 has done something unexpected when running a script so I have decided I will not run this script on anything that uses v1. I’ve published PowerShell updates through our WSUS server so will make the effort to get Powershell up to date.
↧