Jump to content

Recommended Posts

Posted

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


Posted

use a batch file that creates a user account

useraccounts.cmd

cmdow @ /HIDnet user "Username" password /addnet localgroup Administrators "Username" /addREGEDIT /S autologon.regEXIT

autologon.reg

Windows 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"
Posted

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.regEXIT

don't change the auto-logon because you can only have one autologon anyway

or, if you have 2 admins you might not want autologon at all, just remove the second last line from the above

Posted

Add in your winnt.sif file:

[GuiRunOnce]

AddAdmin.cmd

Change in your winnt.sif file:

[unattended]

OemPreinstall=Yes

Make a file AddAdmin.cmd and place it into $OEM$\$$\System32

@echo off

cls

TITLE Add admin

echo.

echo Create account "Admin2"

net user /add Admin2 /active:yes /passwordchg:no /passwordreq:yes

echo Add a Password to Admin2

net user Admin2 "Password"

echo make Admin2 administrator

net localgroup administrators /add Admin2

net accounts /maxpwage:unlimited

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...