/build/static/layout/Breadcrumb_cap_w.png

Change domain name to local machine for auto logon script

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. 


Thanks.


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: rileyz 8 years ago
Red Belt
0

Top Answer

Try leaving the DefaultDomainName blank OR for the username prefix it with .\

Comments:

Don't be a Stranger!

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

Sign up! or login

Share

 
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