Setting Users and Autologon (Automagically)

April 08, 2004

 

Take a look at "addusers.exe" and "usrtogrp.exe" in the W2K Admin Kit.
Batchfile setusers.bat:
addusers /c c:\apps\addusers.txt /p:ce
usrtogrp c:\apps\usrtogrp.txt
regedit /s autologon.reg
exit

addusers.txt:
[Users]
(username),(full name),(password),

usrtogrp.txt:
DOMAIN:localmachine
LOCALGROUP:Administrators
(username)

autologon.reg:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="(username)"
"DefaultPassword"=""
"AutoAdminLogon"="1"


Resources:
autologon
Batch files - Use REGEDIT to add, read, or delete registry values
Windows 2000 Resource Kit - MS website

0 comments: