nonone Posted May 7, 2004 Posted May 7, 2004 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
[BM]Crusher Posted May 7, 2004 Posted May 7, 2004 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"
nonone Posted May 7, 2004 Author Posted May 7, 2004 thanks [bM]Crusherbut this to ADD one AdministratorI want to ADD 2 Administrators
[BM]Crusher Posted May 7, 2004 Posted May 7, 2004 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
Andries Posted May 7, 2004 Posted May 7, 2004 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
nonone Posted May 7, 2004 Author Posted May 7, 2004 thanks alot [bM]Crusher and Andries I will try it soonthanks again
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now