How do I remove domain login for Windows XP?

WindowsMillennial 145 Reputation points
2026-07-01T04:35:43.77+00:00

I have an old Windows XP which used to be part of an office building network domain. At the login screen (I have already removed the CTRL+ALT+DEL requirement), I am presented with two choices, choosing to login to the domain network or to login the machine itself. I just want to login to the machine itself automatically as the office building network domain no longer exists. How do I remove the domain from the login option list and have the computer log me into the machine automatically?

Windows for home | Previous Windows versions | Security and privacy
0 comments No comments

Answer accepted by question author
Marcin Policht 106.8K Reputation points MVP Volunteer Moderator
2026-07-01T11:07:33.4266667+00:00

If the Windows XP computer was previously joined to a domain, the login screen will continue showing the domain option until the machine is removed from the domain and switched back to a workgroup. To do this, log in using a local administrator account (choose “This computer” or the computer name from the logon dropdown). Then open Control Panel > System > Computer Name tab and click Change. Select Workgroup instead of Domain, enter a simple workgroup name such as WORKGROUP, and restart the computer. After rebooting, the domain option will no longer appear because the PC is no longer domain-joined.

To make the computer log in automatically, open the Run dialog and run control userpasswords2 (or netplwiz). Clear the checkbox labeled Users must enter a user name and password to use this computer. Click Apply, enter the local username and password you want Windows to use automatically, and restart. Windows XP should then bypass the logon screen and sign directly into the local account.

If control userpasswords2 is unavailable or does not work, you can also configure auto-login through the registry. Open regedit and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

Set or create these string values:

  • AutoAdminLogon = 1
  • DefaultUserName = your local username
  • DefaultPassword = your password
  • DefaultDomainName = the computer name

Restart afterward and the system should log in automatically using the local account.


If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

hth

Marcin

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.