Cannot set Password on Windows Instance

I have an image of an old Instance that I have restored. That wasn’t too difficult. However, getting access to it has me stumped. I typically, if I don’t know the password, will use the Set Password function in the cloud console. For some reason, it’s not letting me and it’s giving me an error “Windows password could not be set. Try again. If you just created this instance, allow 10 minutes for it to be ready.” It’s been way over 10 minutes. I’ve also tried to access via RDP and try a password, but it’s not allowing me to connect.

I’m out of ideas and appreciate anyone that has anything else I can try. Feel free to ask any questions.

Thank you in advanced.

JJ

Hi,

I’ve had “similar” problem when I’ve tried to restart password for user that wasn’t me. I mean that maybe this image from which you’ve restored instance doesn’t contain user related with you. Also, sometimes when I’m starting or creating new Windows machine, I’m getting errors, that VM is not accessible even if VM is up and running. Try to stop, ( not restart ) and start VM. ← I know, it’s not the best solution, but sometimes it is work :slightly_smiling_face:

Also maybe try reset password from gcloud:
gcloud beta compute --project “PROJECT” reset-windows-password “INSTANCE)NAME” --zone “ZONE”

best,
Damian

On Windows instances with a smaller boot disk (<200 GB), the GCE Windows Agent may start too slowly and timeout.

As the GCE Windows Agent allows for setting passwords on the image, this can cause issues with resetting passwords. In the “Set New Windows Password” form in the Cloud Console, users may see the error message Windows password could not be set. Try again. If you just created this instance, allow 10 minutes for it to be ready. Changes have been made to address the slow startup, but if a user is experiencing this issue –and their boot disk is less than 200 GB– ask them to increase the size of the boot disk as a first step.

1 Like