Actually, the script works when the VM is powered off. The password is changed to the desired password but only that the script returns non-zero code because of the copy command failure. If I run the same script with -RunAsync switch it works like a charm, however I have no way of knowing if the password change failed because of some other reasons, such minimum length or special character requirements.
↧