VMware Workstation Player course

Configure Automatic Sign-In for a Windows Virtual Machine in VMware Workstation Player

Learn how to configure, test, troubleshoot, and disable automatic Windows sign-in in a VMware Workstation Player virtual machine.

Automatic sign-in makes Windows sign in to a selected account after the guest operating system completes a normal boot or restart. VMware Workstation Player starts or resumes the virtual machine; it does not itself sign in to Windows. The sign-in behavior is configured inside the Windows guest.

This can be convenient for a single-user development VM, training image, or unattended test environment. It also reduces security because anyone who can access the running VM may receive the configured account's desktop.

Understand What Automatic Sign-In Does

A virtual machine is a software computer, and its guest operating system is the operating system installed inside it. The physical computer runs the host operating system and VMware Workstation Player.

VMware actionWindows stateExpected sign-in behaviorNotes
Power on the VMWindows performs a bootAutomatic sign-in can take place after bootWindows must reach the normal sign-in process without another prompt
Restart the guestWindows performs a new bootAutomatic sign-in can take placeThis is the primary verification method
Resume a suspended VMThe previous guest session is restoredWindows usually returns to its previous stateA VM suspended while locked may still show the locked screen
Lock or disconnect the guestThe existing session remains lockedAutomatic sign-in does not normally run againUnlocking or changing lock policies is separate
Sleep and wake WindowsThe existing session resumesA sign-in may be required according to Windows sleep settingsThis is not equivalent to a full restart

VM encryption or host-side access controls are separate from Windows automatic sign-in. A protected VM may require host credentials or other access before VMware can power it on. Windows automatic sign-in cannot bypass encryption, BitLocker recovery, boot errors, update screens, or recovery prompts.

Prerequisites and Planning

  • Sign in to the Windows guest and identify the account that should be used.
  • Know the account's current password. Most password-based automatic-sign-in methods require a password-protected account.
  • Have local administrator rights in the Windows guest. The graphical and registry methods generally require administrative access, and Autologon may request elevation.
  • Identify whether the account is a local account, Microsoft account, Active Directory domain account, or work account managed by an organization.
  • When supported by your VMware edition and VM configuration, create a snapshot or backup before changing authentication settings. A snapshot is a saved point-in-time state that can help recover from unwanted VM changes.

Windows Hello and Passwordless Requirements

Windows Hello includes authentication methods such as PIN, facial recognition, and fingerprint sign-in. On some newer Windows installations, a Windows Hello-only or passwordless sign-in requirement hides the User Accounts automatic-sign-in checkbox.

  1. Open Settings > Accounts > Sign-in options in the guest.
  2. Review the setting that requires Windows Hello sign-in for Microsoft accounts or otherwise removes password-based sign-in.
  3. If your security policy permits password-based automatic sign-in, disable the relevant passwordless requirement.
  4. Close Settings and reopen the User Accounts utility.

Organization-managed devices may enforce this setting through domain policy, security baselines, or endpoint management. In that situation, a local administrator may not be able to restore the checkbox.

Method 1: Configure User Accounts with netplwiz

netplwiz opens the Windows User Accounts utility. control userpasswords2 is an alternate command that opens the same or a closely related interface.

  1. Start the Windows guest and sign in with an administrative account.
  2. Open the Run dialog.
  3. Enter netplwiz and press Enter. If necessary, use control userpasswords2 instead.
  4. Select the account that should sign in automatically. Verify the username and account context carefully.
  5. Clear Users must enter a user name and password to use this computer, when that option is available.
  6. Select Apply or OK.
  7. Enter and confirm the selected account's current password when Windows prompts for it. Do not enter a PIN unless the dialog specifically supports it; this configuration normally uses the account password.
  8. Restart Windows from inside the guest and confirm that the expected account reaches the desktop without a credential screen.

If the checkbox is missing, review Settings > Accounts > Sign-in options as described above, then reopen netplwiz. If policy controls the setting, use the organization's approved authentication process instead of bypassing policy.

Method 2: Use Microsoft Sysinternals Autologon

Sysinternals Autologon is a Microsoft utility for configuring Windows automatic logon. It is useful when the graphical User Accounts option is unavailable or unsuitable.

  1. Download Autologon from a trusted Microsoft Sysinternals source while using a secure connection and validating that the download is genuine.
  2. Choose the executable matching the guest architecture, such as Autologon.exe or Autologon64.exe.
  3. Run the utility in the Windows guest and accept its license terms.
  4. Enter the target username, domain or computer name, and password. For a local account, the computer name or local account context may be appropriate. For a domain account, enter the actual domain.
  5. Select Enable and approve elevation if requested.
  6. Restart the guest to test the result.
  7. To stop automatic sign-in, run Autologon again and select Disable, then test with a full restart.

Autologon stores the credential in a protected Windows configuration mechanism rather than leaving the password as ordinary visible text in the dialog. This improves protection compared with casually writing a password into a script, but it does not make automatic sign-in risk-free. A user with sufficient access to the guest or its files may still be able to attack the stored credential or use the already signed-in session.

Method 3: Configure the Winlogon Registry Values

The registry is Windows' configuration database. The Winlogon component and its registry settings participate in interactive sign-in. Manual registry configuration should be reserved for a specific administrative need because it can store a password and can prevent normal sign-in if values are incorrect.

Before changing the registry, back up the relevant key and, when possible, create a VM snapshot or another verified backup.

  1. Open Registry Editor with administrative rights.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.
  3. Configure or review these values:
ValuePurpose
AutoAdminLogonSet to 1 to enable automatic logon; set to 0 to disable it.
DefaultUserNameThe account name Windows should use.
DefaultPasswordThe account password. This is sensitive credential data and should not be added casually.
DefaultDomainNameThe domain or computer context for the account.

Account context matters:

Windows account typeUsername formatDomain or computer valueCommon configuration issue
Local accountA local usernameThe VM's computer name, or the local context expected by WindowsUsing a domain name causes Windows to search for the wrong account
Active Directory domain accountThe domain usernameThe actual Active Directory domainThe VM may lack network access to a domain controller, or policy may prohibit automatic logon
Microsoft accountThe account's Windows-recognized sign-in name, often an email-style nameThe format expected by the Windows buildAn incorrect account-name format or passwordless settings can prevent logon
Work or school accountThe organization-provided sign-in nameThe organization's account contextManagement policy may disable or overwrite automatic logon

Do not use manual password storage unless there is a clear administrative requirement and the associated risk is accepted. To reverse the registry configuration, set AutoAdminLogon to 0 and remove the stored credential values, especially DefaultPassword. Then restart Windows and verify that manual sign-in is required.

Compare the Configuration Methods

MethodBest use caseAdministrative access neededCredential storage approachAdvantagesLimitationsHow to disable
User Accounts utilitySimple local configurationUsually requiredWindows manages the resulting automatic-logon settingsFast and graphicalCheckbox may be hidden or policy-controlledRun netplwiz and re-enable the password requirement
Sysinternals AutologonWhen the graphical option is unavailableUsually requiredProtected Windows credential storage managed by the utilityClear enable and disable workflowStill exposes the session after boot and depends on compatible account settingsOpen Autologon and select Disable
RegistrySpecific administrative or scripted configurationRequiredMay store DefaultPassword in the registryDirect and automatableHighest configuration and credential-handling riskSet AutoAdminLogon to 0 and remove stored values

Start and Test the VM in VMware Workstation Player

  1. In VMware Workstation Player, select the Windows VM and choose the normal power-on or start action. For basic startup guidance, see Starting a Virtual Machine.
  2. Observe the guest display. VMware powering on the VM is complete before Windows necessarily finishes booting.
  3. Allow Windows to complete boot processing. Automatic sign-in should select the configured account and load its desktop.
  4. Use a full Windows restart for testing. Do not treat pause, suspend, or resume as proof that automatic sign-in works.
  5. If the VM is intended for unattended use, test at least one restart after a Windows update and confirm that no update, recovery, encryption, or first-run prompt blocks the desktop.

A suspended VM often returns to the prior guest session. If Windows was locked when the VM was suspended, resuming may show the locked screen and require the account's normal unlock method. Automatic logon normally occurs during a new boot, not each time the VM resumes.

Security and Operational Considerations

  • Anyone with access to the running VM can use the automatically signed-in account, including its files, applications, network access, and saved sessions.
  • Stored automatic-logon credentials are a risk on shared hosts, portable computers, training labs, and VMs containing sensitive information.
  • Prefer a standard, least-privilege account. Avoid automatic sign-in for privileged administrator accounts or production systems unless there is an explicit security decision.
  • Protect the host account, restrict physical and remote access, and use full-disk encryption where appropriate.
  • Consider VM encryption and access controls separately from Windows sign-in. A secured host and protected VM files reduce the chance of offline access.
  • Domain policy, security baselines, and endpoint-management tools may disable or overwrite automatic-logon settings.

Troubleshooting

SymptomLikely causeRecommended fix
The checkbox is not visible in netplwizWindows Hello-only sign-in is enabled, policy controls the device, or the build presents the option differentlyReview Settings > Accounts > Sign-in options, disable the relevant passwordless requirement if allowed, and reopen the utility. Contact the administrator if policy-managed.
Windows still shows a password prompt after restartThe password changed, the setup password was incorrect, the wrong account context was selected, or policy disabled automatic logonReconfigure with the current password, verify the account and domain or computer name, and check organizational policy.
The VM returns to a locked screen after resumeThe guest was suspended while locked, or Windows requires sign-in after sleepUnlock the guest or review Windows lock and sleep settings. Test with a full reboot.
Local automatic sign-in works but domain sign-in failsThe domain is wrong, a domain controller is unavailable, or domain policy blocks automatic or cached interactive logonValidate the username and domain, confirm network availability at boot, and consult domain administrators.
A Microsoft account does not sign in automaticallyThe username format is wrong, passwordless settings conflict, or the saved password is outdatedConfirm the Windows-recognized username and current password, then review Windows Hello settings or use Autologon where appropriate.
The VM starts but does not reach the desktopWindows is waiting for an update, recovery screen, BitLocker recovery key, boot repair, or driver intervention; the VM may also require host-side accessResolve the pre-sign-in condition first. Automatic sign-in cannot bypass boot security, recovery, encryption, or guest errors.

Verification and Rollback

After configuration, perform a full Windows restart and confirm that the expected account is signed in. Check that the correct profile, desktop applications, network access, and startup tasks are available. If unattended operation matters, repeat the test after a maintenance or update restart.

To restore manual sign-in, use netplwiz to re-enable the user-name-and-password requirement, use Sysinternals Autologon and select Disable, or set AutoAdminLogon to 0 and remove stored registry credential values. Restart the guest and confirm that Windows displays its normal credential screen.

Related VMware Workstation Player Topics

For broader VMware concepts, review What Is a Virtual Machine?, VMware Workstation Player Home Screen, and VMware Workstation Player Course.