How to Reset Virtual Machine Password (Local & Azure Cloud)

Resolve enterprise cloud lockouts using native Microsoft tools. You can discover the exact steps to perform resetting Virtual Machine password natively straight from your Microsoft admin portal.

By Lucas    Updated on June 29, 2026

Quick Answer:

Bypassing a locked login screen on a virtual machine is easy, depending on where your VM is hosted. Read the direct solutions below to regain access to your data.

Yes, you can easily reset the virtual machine's credentials without losing your files or deleting the virtual hard disk. The method you use depends entirely on your hosting environment.

For Cloud Environments: If you are locked out of a cloud-hosted machine, you can execute an Azure virtual machine reset password natively. By logging into the Azure Portal, you can use the built-in "Reset password" extension to force a credential update without accessing the guest OS.

For Local Environment: If you are locked out of a local hypervisor (like VMware, VirtualBox, or Hyper-V), you must reset the password of a Windows VM using third-party tools. We recommend using AOMEI Partition Software to generate a bootable recovery ISO file. By mounting this ISO to your VM's virtual CD drive, you can boot into a recovery menu and wipe the password instantly.

Why Reset Windows Password on VM?

Virtual machines are frequently used for secure testing, but forgetting the administrator credentials brings your workflow to a dead halt. Let's examine why these lockouts occur and how to approach them based on your infrastructure.

IT administrators and software developers create multiple virtual environments for isolated testing. Because users often assign complex, randomized passwords to these temporary machines, it is incredibly easy to forget them. When you attempt to reset Windows' password on a VM, you are faced with a unique challenge: you cannot simply plug a physical recovery USB flash drive into a virtual computer.

To effectively bypass the lock screen, you must understand your deployment type. Here is a comparison table outlining the root causes and required solutions:

VM Deployment Type

Lockout Scenario

Required IT Solution

Microsoft Azure (Cloud VM)

You forgot the RDP credentials to log into your cloud server.

Use the Azure Portal's native VMAccess Extension to remotely inject a new password.

Local VM (Hyper-V / VMware)

You forgot the local Windows login password on your desktop hypervisor.

Mount an AOMEI Bootable Password Reset ISO to the virtual CD drive to wipe the credentials offline.

Severely Corrupted VM

The VM is infected by ransomware, and the password was maliciously changed.

Delete the infected VM and use the AOMEI Create VM tool to deploy a sterile, fresh environment.

Cloud Fix: Azure Virtual Machine Reset Password

Managing cloud infrastructure means you do not have physical access to the server. Thankfully, Microsoft provides native tools to force a credential update securely through the web portal.

If you are hosting your infrastructure in the cloud, you cannot mount local recovery files. Instead, Microsoft built a specific extension to handle an Azure virtual machine reset password seamlessly. This process uses the Azure VM Agent to push a new credential into the running server.

Step 1. Open your web browser and log in to the Microsoft Azure Portal using your administrator credentials.

Step 2. Navigate to the left-hand menu and select Virtual machines.

Step 3. Click on the specific Windows VM that you are currently locked out of.

Step 4. Scroll down the left-hand navigation pane for that specific VM until you find the Help + troubleshooting section.

Step 5. Click on Reset password.

Step 6. Ensure the "Mode" is set to Reset password.

Step 7. Enter your existing exact username. Then, type your brand-new, secure password into the text box and confirm it.

Step 8. Click the Update button at the bottom of the screen.

Azure will deploy the VMAccess extension in the background. Within a few minutes, the new credentials will be injected into the guest OS, and you can successfully connect via Remote Desktop using your new password.

Local Solution: Reset Password of a Windows VM via Windows Password Tool

When you are locked out of a local hypervisor like VirtualBox or VMware, you cannot rely on cloud portals. IT experts use dedicated disk management software to bypass the OS completely.

If you are running a local VM, you face a unique hardware problem: you cannot plug a physical password-reset USB drive into software. To reset the password of a Windows VM, you must generate a recovery ISO file and mount it virtually.

AOMEI Partition Software is the ultimate Windows management software. While it is famous for disk partitioning, its elite "Reset Windows Password" feature uniquely allows you to export the recovery tool as an ISO file—making it the perfect, flawless solution for locked virtual machines.

AOMEI Partition Software

A safe and reliable disk partition management tool that helps you migrate OS to SSD or HDD, reorganize disk space, and improve overall PC performance.

 

Step 1: Create a Bootable ISO via AOMEI Partition Software

To unlock a local VM, you must boot it from an external software tool. We will use AOMEI on your physical host PC to generate a password reset ISO file.

Step 1. On your physical host computer, download, install, and launch AOMEI Partition Software.

Step 2. In the top toolbar, click on Tools and select Reset Windows Password.

Step 3. A pop-up window will appear. Instead of selecting "USB Boot Device," you must select Export ISO File.

Step 4. Click Proceed. AOMEI will bundle its powerful WinPE password-removal software into a single, clean .iso file and save it to your host computer's desktop.

Step 2: Mount the ISO and Reset Virtual Machine Password

Once the ISO is created, you must attach it to your virtual machine's CD drive. This allows you to boot the recovery tool and wipe the lock.

Step 1. Open your host hypervisor (e.g., VirtualBox, VMware, or Hyper-V).

Step 2. Right-click your locked virtual machine and open its Settings.

Step 3. Navigate to the Storage or CD/DVD Drive section. Select the virtual optical drive and click the icon to "Choose a disk file."

Step 4. Browse your physical PC and select the AOMEI ISO file you just created. Save the settings.

Step 5. Boot up the virtual machine. As it starts, rapidly tap the virtual BIOS key (usually F12 or Esc) and instruct the VM to Boot from CD-ROM.

Step 6. The clean AOMEI interface will load, entirely bypassing the locked Windows OS.

Step 7. Select your Windows installation, click Next, and highlight your locked administrator account.

Step 8. Choose Remove Account Password and click Next. Click Reboot, unmount the ISO from the virtual CD drive, and your VM will boot straight to the desktop without requesting a password.

Bonus: Deploy Fresh Environments with the "Create VM" Feature

Sometimes a virtual machine is too corrupted by malware or forgotten passwords to save. In these cases, rapidly spinning up a fresh environment is the smartest choice.

If your locked VM contained no valuable data, spending time resetting the password might be unnecessary. You can simply delete it and deploy a new one. AOMEI Partition Software now includes a revolutionary, entirely free Create VM function. It automates the hypervisor setup, bypassing complex manual network configurations.

To use it, click Create VM on the AOMEI toolbar. The software provides an intuitive visual interface where you can name your new machine and use simple slider bars to safely allocate your host CPU cores and RAM. Simply browse for a Windows 10 or 11 ISO file and click Create & Start. The software manages all backend hypervisor services and boots you straight to a clean Windows installation screen.

✨ Other Handy AOMEI Functions for Virtual Disks

Beyond resetting passwords and creating VMs, AOMEI provides elite internal storage management. These tools keep your virtual disks perfectly optimized and free of space constraints.

Once you have successfully regained access to your virtual machine, you can install AOMEI Partition Software inside the guest OS to maintain its health:

Allocate Free Space: If your virtual C: drive is flashing red, this 1-click feature mathematically transfers gigabytes of free space from D: to C: without formatting.

PC Cleaner: Virtual machines often bloat with hidden Windows update files and registry junk. The PC Cleaner deeply scans the guest OS to eradicate unnecessary files, improving the VM's overall speed.

To sum up

Being locked out of your virtual system is a temporary roadblock. Here is a brief recap of how to maintain control over your virtual infrastructure credentials.

Managing virtual security requires the right tools for your specific deployment. If you manage cloud infrastructure, utilizing the native Azure virtual machine reset password extension from your web portal provides a secure, immediate fix. However, if you are operating local hypervisors and need to reset password of a Windows VM, you must rely on advanced software.

By exporting a bootable recovery ISO via AOMEI Partition Software, mounting it to your virtual CD drive, and wiping the credentials, you can bypass any local lock screen.

FAQs

Managing virtual credentials and recovery files can be tricky. Below are the most common questions users ask about unlocking and managing their virtual environments.

Q: Will resetting my virtual machine password delete my internal VM files?

A: No. Whether you use the Microsoft Azure portal extension or the AOMEI Partition Software bootable ISO, resetting a password is a completely non-destructive software process. It strictly targets the security credential registry, leaving your virtual software, databases, and documents 100% intact.

Q: Can I use a physical USB drive to unlock a VMware or VirtualBox VM?

A: Technically, yes, through a process called "USB Passthrough," but it is highly unstable and difficult for beginners to configure. Exporting the AOMEI recovery tool as an ISO file and mounting it to the virtual CD/DVD drive is vastly superior, faster, and much more reliable for local VMs.

Q: What if the Azure Reset Password extension fails or grays out?

A: If the Azure portal extension fails, it usually means the Azure VM Agent installed inside the guest OS is hung, outdated, or corrupted. In this scenario, you must reboot the Azure VM from the portal. If it still fails, you may need to use the "Redeploy" feature, which migrates the VM to a new underlying Azure hardware node to clear the physical host glitch.

Lucas · Editor
I prefer peaceful and quiet life during vacation,but sometimes I watch football match if my favorite club performs brilliantly in that season. And I love reading, painting and calligraphy, thus I send my friends festival handwriting cards every year.