nonone Posted May 7, 2004 Share 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 Link to comment Share on other sites More sharing options...
[BM]Crusher Posted May 7, 2004 Share 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" Link to comment Share on other sites More sharing options...
nonone Posted May 7, 2004 Author Share Posted May 7, 2004 thanks [bM]Crusherbut this to ADD one AdministratorI want to ADD 2 Administrators Link to comment Share on other sites More sharing options...
[BM]Crusher Posted May 7, 2004 Share 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 Link to comment Share on other sites More sharing options...
Andries Posted May 7, 2004 Share 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 Link to comment Share on other sites More sharing options...
Andries Posted May 7, 2004 Share Posted May 7, 2004 in the same time you have got 2 solutions! Link to comment Share on other sites More sharing options...
nonone Posted May 7, 2004 Author Share Posted May 7, 2004 thanks alot [bM]Crusher and Andries I will try it soonthanks again 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