Jump to content

Change administrator name


acores

Recommended Posts

Hello.

I want to customise an unanttend Windows XP installation from a CD. I am

editing the Winnt.sif answer file in order to stablish all the needed answers.

However I am facing some difficulties in one step: I want to begin the

session with the name «User A» instead of «Administrator».

Can anyone tell me which command line should I enter in the Winnt.sif file

in order to achieve that?

Thank you in advance.

Regards

Link to comment
Share on other sites


I added a CMDLINES.TXT in the $OEM$ folder with the following txt inside;

(CMDLINES.TXT)

[COMMANDS]

"RunOnceEx.cmd"

".\sav.cmd"

".\fixaccts.cmd"

"REGEDT32.EXE /S tweaks.reg"

"REGEDT32.EXE /S tweaks2.reg"

Then I created FIXACCTX.CMD with the following;

(FIXACCTX.CMD)

@echo off

echo Renaming/Creating Accounts

net user guest {s2J234OPH}

.\renuser guest notguest

net localgroup guests notguest /delete

.\renuser Administrator UserA

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

netuser Administrator /pwnexp:y

REGEDT32.EXE /S enablesr.reg

net user Administrator {s2J234OPH}

net localgroup users Administrator /delete

So now instead of logging in to Administrator I would log on to UserA (who has admin rights)

hope this helps...

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