Setting default logon Domain in a Task Sequence


When you deploy a Windows XP client with Configuration Manager OSD, and the user hits CTRL+ALT+DELETE, the user gets the usual logon screen, but with the target set to the machine name, and not the domain the computer is joined to. This is not the biggest problem on the planet, but why deal with it the problem could go away?


There are many workarounds to this issue, but I prefer using a "Post Configuration Task" in my Task Sequence. All you need to do is to configure two steps (Run Command Line) that will run the following commands:

reg add "HKLMsoftwaremicrosoftwindows ntcurrentversionwinlogon" /v altdefaultdomainname /t REG_SZ  /d "DOMAINAME" /f

reg add "HKLMsoftwaremicrosoftwindows ntcurrentversionwinlogon" /v defaultdomainname /t REG_SZ  /d "DOMAINAME" /f

“DOMAINNAME” in both lines must be replaced with actual domain name :-). Both steps must be executed before the last restart in the Task Sequence.

About Author

My name is Ronni Pedersen and I'm currently working as a Cloud Architect at APENTO in Denmark. My primary focus is Enterprise Client Management solutions, based on technologies like AzureAD, Intune, EMS and System Center Configuration Manager. I'm is also a Microsoft Certified Trainer and Microsoft MVP in Enterprise Mobility.

Leave A Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.