Jump to content

how can I create 2 ( Admin )s


Recommended Posts


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"
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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