Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Virtual Machine Log on

05 Jan 2012   #1

Windows 7 64bit Professional
Virtual Machine Log on

Can anyone please help.

I know this has been done to death but the problem I am having is that up to a few weeks ago I could log onto the XP mode without a password. now its asking for one.

Can anyone give me a step by step joe blog method of either bypassing this or setting up the system to solve this.

Looking at past posts I have tried deleting credentials in the manager, disabling the integration features, setting the close setting to shut down.

I have tried my main computer log in name which has no password assigned, new log in details with a new password with the 'remember my details' checked

There are no log on credentials saved in the settings box but when trying to open the XP mode it quotes the last attempted log in details.

I have tried no password plus having tried new details it then allows me to get passed this log on but once in XP mode it tells me to log on again as the original details are not recognised. The final straw is this XPSUser even though I can not find any details on the computer of this account.

Having tried most things in piece form, a step by step method must be out there!!!!!!


My System SpecsSystem Spec
06 Jan 2012   #2
Night Hawk

W7 Ultimate x64/W10 Pro x64 dual boot main build-remote pc W10 Pro x64 Insider Preview/W7 Pro x64

Hello paulhm Welcome to the Seven Forums!

First off and note this option may not work on the XP Mode as it would on a normal XP Windows install to a physical hard drive you can try going for an automatic "FixIt" download directly from MS at How to turn on automatic logon in Windows XP

There are two downloads found there with the first above the second being the turnon automatic logon registry mod tool. The second is for turning off and requiring the password prompt be answered.

The old method most familiar requires a manual edit of the system registry simply to add a new string value in at the right location which will then bypass the user account/password prompting automatically. First you open up the registry editor and proceed to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" and then double click on the DefaultUserName, type your account user name and click ok.

Then you find the DefaultPassword item and double click on that too. If that is not found then you would need to create it. From there you go upto the Edit option on the menu bar and click on the "New" option and point to "string value". Type DefaultPassword and press enter folllowing that.

(Or if you were in a normal install without any password assigned which isn't the case with the XP Mode where one is required you would folow the same steps but type in "AutoAdminLogon" and once that was creeated go back to Edit with the new entry highlighted and click the Modify option to add 1 to enable it.)

The full MS article for this can be seen at How to turn on automatic logon in Windows
My System SpecsSystem Spec
06 Jan 2012   #3

Microsoft Community Contributor Award Recipient


Log in to XP Mode using built-in administrator profile. To do this, you need to first be sure that integration is disabled, and that XP Mode is really shut down instead of being hibernated as is the default close mode. This is because when integration is enabled you can not login to XP Mode or any other Virtual PC virtual machine using a username without password, and the built-in administrator account does by default have no password set. Instructions on how to set up a password for XP Mode built-in administrator account can be found in this post (method 2): can't run programs as administrator in xp mode

To check that XP Mode is really shut down, close XP Mode and then check the folder %userprofile%\AppData\Local\Microsoft\Windows Virtual PC\Virtual Machines. If it is hibernated you will find the hibernation file Windows XP Mode.vsv (Virtual Machine Saved state file). Delete this file, so next time when XP Mode is launched it does not find hibernation information and is therefore forced to boot normally.

Now log in with username Administrator without password. Go to Control Panel > Users and add password to every account. You can also create new user accounts but remember to create password for every account. Due to restrictions in Remote Desktop Protocol you can not use XP Mode or any other VPC vm without password, as already mentioned.

Shut down XP Mode, re-enable integration features and you are ready to go.


P.S. You might want to read this post, too, although it's not directly answering your questions.
My System SpecsSystem Spec

06 Jan 2012   #4
Night Hawk

W7 Ultimate x64/W10 Pro x64 dual boot main build-remote pc W10 Pro x64 Insider Preview/W7 Pro x64

You'll also find that if you make any changes in the XP Mode itself while in it you will be prompted for the password you assigned when setting it up or when you have added another user account. Even with other OSs on other vm programs a prompt for the default password assigned for a specific vm will often be the case.

Here I never save the power or other state and always see the XP Mode load right upto the desktop. One tip for running into the logon prompting would be answering no when asked if you wish to save the present state when going to shutdown and no longer have to worry about seeing the Windows XP Mode.svs file created.
My System SpecsSystem Spec
06 Jan 2012   #5

Windows 7 64bit Professional

Hi Night Hawk & Kari

Many thanks for the assistance

Night Hawk

Unfortunatly I can not find the two lines (User or password) at the location stated in the registery, to change the details.


I followed your instructions but when inputting the administrator details I get a message stating the administrator account has been disabled

Virtual Machine Log on-admin.png

Is there any way around this

Best regards

My System SpecsSystem Spec
06 Jan 2012   #6

Microsoft Community Contributor Award Recipient



When you installed XP Mode it most definitely asked you to set up a password for default userprofile XPMUser. XP Mode installation does not let you to continue without setting up a password, nor does it let you to use any other initial username than XPMUser, so the fact remains that an XP Mode virtual machine always has a user XPMUser with the password user set up when launching XP Mode first time.

Checking your original post once more I noticed you are talking about user XPSUser. If that's not a typo then you are using wrong username. Default XP Mode username, created when XP Mode is launched first time is XPMUser.

So: try to remember what password you set initially up when you installed XP Mode, then log in using username XPMUser and the password.

My System SpecsSystem Spec
06 Jan 2012   #7
Night Hawk

W7 Ultimate x64/W10 Pro x64 dual boot main build-remote pc W10 Pro x64 Insider Preview/W7 Pro x64

The registry value I mentioned before doesn't have anything to do with the user or password used. It sets the mode to automatic when the XP Mode first starts and loads right to the desktop. As will you will note from the screen here the AutoAdminLogon value in the registry is highlighted.

The XP Mode still requires that reg entry be present there but the value is set to 0. The logon here to grab this screen was automatic pointing to what Kari has been explaining about the power state also playing a role. One reference that may help you follow what Kari is explaining as far as the prompting for the XPMUser password can be seen at: Prompt for XPMUser password - Windows 7
My System SpecsSystem Spec
07 Jan 2012   #8

Linux CENTOS 7 / various Windows OS'es and servers

Hi there
simpler method Logon to XP first as normal then :

1. At a command prompt, type "control userpasswords2" and press Enter to open the User Accounts
application. (type this in the RUN menu not in a "Dos Box").

2. On the Users tab, clear the Users Must Enter A User Name And Password To Use This Computer check box and then
click OK.
3. In the Automatically Log On dialog box that appears, type the user name and password for the account you want to be
logged on each time you start your computer.

To REMOVE a password

Control Panel/Administrative Tools/Local Security Settings/Minimum Password Length/Reduce it to 0 (No password required). Control Panel/User Account/Your Account/Remove Password.

BTW this also works for W7 if you want to bypass the login screen too.

My System SpecsSystem Spec
07 Jan 2012   #9
Night Hawk

W7 Ultimate x64/W10 Pro x64 dual boot main build-remote pc W10 Pro x64 Insider Preview/W7 Pro x64

That is for a normal Windows installation not the XP Mode. You can't run the XP Mode at all without an assigned password. Any change of settings made in the XP Mode itself while running will often a password prompt appear for entering the default password. This is a security protocol for the VM. You wouldn't want to be trying to remove the password provided for the default user account

In fact you will often see password prompts appear on other VM programs as well as other OSs run on them. (See image attached below)

The XP Mode is a different ball game there over any typical XP or other version's install to a physical drive with the original MS intention of this allowing businesses to upgrade to 7 and still run their older XP desktop apps. For this MS included an additional layer of security where a password is a requirement.

If you look back at my last post at the screen there that's how that section of the registry should look by default in the XP Mode unchanged. You'll note the AutoAdminLogon entry is seen at "0" meaning it is disabled. The XP Mode's admin account likely sees that it stays that way!

The XP Mode still loaded directly to the desktop here however mostly since I always shut it down with saving the present state at the time. Looking back a few times I did and had to logon with the password not see it load the desktop right from the start. I never had to disable the Integrated Components afterwards to see the XP Mode auto load however from having saved any state. But deletion of the svs file as Kari instucted should insure results as far as seeing it logon automatically again.

Another update here to show that the XP Mode is rather unique as far as VMs are concerned. Just finished customing installing a Linux Distro on another program to see the password prompts just to logon as well as go for the updates.

Attached Thumbnails
Virtual Machine Log on-vm-player-40-password-requirement.jpg   Virtual Machine Log on-password-required-vm-os-logon.jpg   Virtual Machine Log on-password-required-vm-os-updates.jpg  
My System SpecsSystem Spec

 Virtual Machine Log on

Thread Tools

Similar help and support threads
Thread Forum
create virtual machine with product key from physical machine.
Hello, I have a Dell XPS desktop computer with Windows 7. On the top of this desktop is a Microsoft Windows product key labeled for Windows 7 with a bunch of numbers. I would like to use this Dell XPS desktop with something other than, Windows 7. Could I install Linux on this Dell XPS and...
Windows Virtual PC - Connect Virtual Machine to Network
How to Connect Windows Virtual PC to the Network This will show you how to connect Windows Virtual PC to your network so that your created virtual machine or XP Mode will be able to access the internet. For more information, see: Networking in Windows Virtual PC - Windows Virtual PC -...
How to Create a Win95 Virtual Machine in Windows Virtual PC
Hi, first post here. I have Win XP mode running in Win virtual pc on my Win 7 Pro tower. I have been given an original and unopened Win95 pack containing a Win95 v4.0.950B Nov96 CD with USB support and an IE4 CD. I think I understand from Brinks "How to create a virtual machine in windows virtual...
Development Programming in Virtual Machine vs Host Machine
Hi guys, I have been around this problem for some time now and want to know you opinions. I am running on HP notebook: Intel Core 2 Duo 2.26GHz, 64bit Windows 7 Professional, 4GB Ram, ATI Graphics. I want to ask your opinions about doing developments, is it better to be in the host...
Using .vhd file from one virtual machine to other virtual machine
Hi, I am using MS Virtual PC v6.1.7600.16393. I had created a virtual machine on my system, which has been deleted now, but I have .vhd file created for that virtual machine. Now I am trying to create a new virtual machine by using the previous .vhd file. Unfornunatly, when I start...

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 03:52.
Twitter Facebook Google+