Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Compute Cloud
    • All guides
      • Testing the agent
      • Installing the agent
      • Resetting the admin password
      • Deleting the agent
    • Viewing service resource operations
    • Viewing metrics in Monitoring
    • NVIDIA driver update guide
  • Yandex Container Solution
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  1. Step-by-step guides
  2. Managing the password reset agent
  3. Resetting the admin password

Resetting a Windows Server admin password

Written by
Yandex Cloud
Updated at September 23, 2025

The first time you connect to the VM via RDP, you need to reset the default admin password and generate a new one.

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. In the management console, select your VM folder.

  2. Select Compute Cloud.

  3. Select the VM.

  4. At the top right, click and select 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 be created automatically and get admin permissions.

    To reset the admin password, specify Administrator.

  6. Click Generate password.

  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.

Warning

Make sure to save the generated password, as it will not be shown again after you close the window.

Was the article helpful?

Previous
Installing the agent
Next
Deleting the agent
© 2025 Direct Cursus Technology L.L.C.