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.

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answer Chosen by the Author

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

Please log in to comment

Answers

Answer this question or Comment on this question for clarity