Nils Posted January 5, 2007 Share Posted January 5, 2007 (edited) Hello,I'm trying to create an admin account in W2000 from cmdlines.txt, then importing reg tweaks, and then rebooting. Most of it works, except that the autologon.reg doesn't get imported into the registry during the unattended setup, but instead the default Administrator account is in and asks for a password. The useraccounts.cmd is obviously executed because the user JH is added to the Administrators group.After Windows is up, if I run useraccounts.cmd manually it gets imported, and after another reboot the desired user account with auto logon works. All the files listed are located in /$OEM$/ except for winnt.sif, which is in /i386/.Any help would be appreciated.WINNT.SIF:;SetupMgrTag[Data] AutoPartition=1 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINNT UnattendSwitch="yes" DriverSigningPolicy=Ignore[GuiUnattended] AdminPassword=* OEMSkipRegional=1 TimeZone=10 OemSkipWelcome=1[UserData] FullName="JH" ComputerName=W2000 ProductID="xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"[Display] BitsPerPel=4 Xresolution=800 YResolution=600 Vrefresh=60[TapiLocation] CountryCode=1 AreaCode=406[RegionalSettings] LanguageGroup=1 Language=00000409[Components] pinball=off solitaire=off minesweeper=off freecell=off[Identification] JoinWorkgroup=W[Networking] InstallDefaultComponents=Yescmdlines.txt:[COMMANDS]"useraccounts.cmd""RunOnceEx.cmd"useraccounts.cmd:net user JH /addnet localgroup Administrators JH /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITautologon.reg:Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="JH""DefaultPassword"="""AutoAdminLogon"="1"RunOnceEx.cmd:cmdow @ /HID@echo offSET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceExREG ADD %KEY% /V TITLE /D "Installing Applications and Registry" /fREG ADD %KEY%20 /VE /D "Importing Registry Tweaks" /fREG ADD %KEY%20 /V 1 /D "REGEDIT /S %systemdrive%\Install\regtweaks.reg" /fREG ADD %KEY%30 /VE /D "Cleaning Up and Rebooting" /fREG ADD %KEY%30 /V 1 /D "%systemdrive%\Install\cleanup.cmd" /fEXIT Edited January 5, 2007 by Nils Link to comment Share on other sites More sharing options...
snooz Posted January 6, 2007 Share Posted January 6, 2007 I have only done unattended on Windows XP so I don't know if Windows 2000 is the same.XP looks like this...[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="name""DefaultPassword"="pass""AutoLogonCount"="1""AutoAdminLogon"="1"[GuiUnattended]AdminPassword = passAutoLogon = YESAutoLogonCount = 1Your password needs to be the same in your sif and reg key. I don't think you can leave the password blank. Link to comment Share on other sites More sharing options...
Nils Posted January 6, 2007 Author Share Posted January 6, 2007 Thank you snooz for your reply.Yes, it works fine for me also in Windows XP, it's only in Windows 2000 it doesn't work. Link to comment Share on other sites More sharing options...
snooz Posted January 6, 2007 Share Posted January 6, 2007 Thank you snooz for your reply.Yes, it works fine for me also in Windows XP, it's only in Windows 2000 it doesn't work.Good luck figuring it out. Link to comment Share on other sites More sharing options...
Oleg_II Posted January 8, 2007 Share Posted January 8, 2007 Nils Interesting... I thought this tweak is not working because I'm using reduced with HFSLIP Windows 2000... And it appeared it just doesn't work in W2k If you find the way let me know Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now