I don't think it can be a problem with the script you posted as it's an old Scripting Guys script which has been tested and used countless times. The obvious test is to RDP into that server and run...