May 7, 200422 yr hi everyone need 2 create 2 Adiminstrators haw can I do that by using winnt.sif ? or need 2 change the Registry ?somebody tell me please thanks in Advanced
May 7, 200422 yr use a batch file that creates a user accountuseraccounts.cmdcmdow @ /HIDnet user "Username" password /addnet localgroup Administrators "Username" /addREGEDIT /S autologon.regEXITautologon.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Username""DefaultPassword"="password""AutoAdminLogon"="1"you can run the batch file from cmdlines.txt (place all 3 of these files in your $OEM$ dir)cmdlines.txt[COMMANDS]"useraccounts.cmd"
May 7, 200422 yr Author thanks [bM]Crusherbut this to ADD one AdministratorI want to ADD 2 Administrators
May 7, 200422 yr just add 2 users then cmdow @ /HIDnet user "Username" password /addnet localgroup Administrators "Username" /addnet user "SecondUser" password /addnet localgroup Administrators "SecondUser" /addREGEDIT /S autologon.regEXITdon't change the auto-logon because you can only have one autologon anywayor, if you have 2 admins you might not want autologon at all, just remove the second last line from the above
May 7, 200422 yr Add in your winnt.sif file:[GuiRunOnce] AddAdmin.cmdChange in your winnt.sif file:[unattended] OemPreinstall=YesMake a file AddAdmin.cmd and place it into $OEM$\$$\System32@echo offclsTITLE Add adminecho.echo Create account "Admin2"net user /add Admin2 /active:yes /passwordchg:no /passwordreq:yesecho Add a Password to Admin2net user Admin2 "Password"echo make Admin2 administratornet localgroup administrators /add Admin2net accounts /maxpwage:unlimited
Create an account or sign in to comment