Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Stopping and starting a VM
      • Resetting a Windows Server VM user password
      • Attaching a disk to a VM
      • Detaching a disk from a VM
      • Moving a VM to a different availability zone
      • Moving a VM to a different folder
      • Moving a VM to a different cloud
      • Adding another network interface to a VM
      • Deleting a network interface from a VM
      • Assigning a public IP address to a VM
      • Unassigning a public IP address from a VM
      • Making a VM public IP address static
      • Reassigning a public IP address from one VM to another
      • Updating the VM internal IP address
      • Updating a VM
      • Changing VM computing resources
      • Changing VM security groups
      • VM maintenance policy management
      • Configuring VM access permissions
      • Linking a service account to a VM
      • Deleting a VM
    • Viewing operations with resources
  • Yandex Container Solution
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing a VM
  3. Resetting a Windows Server VM user password

Resetting a user password on a Windows Server VM

Written by
Yandex Cloud
Updated at February 12, 2025

To reset a user password on a Windows Server VM, you need the following Yandex Cloud tools:

  • Password reset agent. The agent is part of default Windows Server images. If you are using a custom image, you will need to install the agent manually by following this guide.
  • The compute.admin service role, the editor primitive role, or any other role that inherits all permissions of these two. For more information about roles, see Access management in Compute Cloud.

  • VM with the RUNNING status.

To reset a password:

Management console
PowerShell
  1. Select the folder the VM belongs to.

  2. Select Compute Cloud.

  3. Select the VM.

  4. Click Reset password.

    Note

    If the window that opens shows a message saying that the password reset agent is not running on the VM, make sure it is installed and check its runtime logs. For more information, see Checking password reset agent operation on a Windows Server VM.

  5. Specify the Username to reset the password for. If there is no user with that name on your VM, it will automatically be created with admin permissions.

  6. Click Generate password.

  7. Save the New password, as it will not be shown again after you close the window.

  1. Run PowerShell as an administrator.

  2. Install the password reset module (once):

    1. Install the CLI and configure it so that you can run commands as a user or service account with the required role (see above).

    2. Run this command:

      Install-Module -Name YCPasswordReset
      

      Answer Y (for "Yes") to installer questions, such as those regarding NuGet and repositories.

  3. Run this command:

    Reset-YCUserPassword -InstanceName <VM_name> -Username <VM_username>
    

    Note

    If a command takes too long to run, stop it with Ctrl + C. After you do this, verify that the password reset agent has been installed and check its logs. For more information, see Checking password reset agent operation on a Windows Server VM.

    If there is no user with the name specified in the -Username parameter on your VM, it will automatically be created with admin permissions.

  4. Save the generated password as it will not be shown again after you close the window.

Was the article helpful?

Previous
Stopping and starting a VM
Next
Attaching a disk to a VM
© 2025 Direct Cursus Technology L.L.C.