KACE Product Support Question

Change domain name to local machine for auto logon script

04/27/2016 697 views

Hi guys,

I know this is the script for auto logon in windows....I use it as a post install task in my k2000.

reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoAdminLogon /d 1  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v AutoLogonCount /t REG_DWORD /d 10  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultDomainName /d domain  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultUserName /d username  /f
reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon" /v DefaultPassWord /d password /f

What do I change the "defaultdomainname" to,  if I want the script to replace it with the computer name.

I want to auto logon as a local admin account, so I want the script to put the computer name as the domain?

Machine names are auto generated by my k2000 based on serial number, so I want the script to insert the names automatically. 


Answer Summary:
0 Comments   [ + ] Show comments


Answer Chosen by the Author

Try leaving the DefaultDomainName blank OR for the username prefix it with .\
Answered 04/28/2016 by: rileyz
Red Belt

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ