Jump to content

Recommended Posts

Posted

I have been using the MSFN's Unattended installation guide to make an XP Home CD for my laptop. I have used the Net User method to create a user "Leo" and have setup autologon for this user.

I have tested this on Virtual PC '04 and the user "Leo" has certainly been created, but a user called "Owner" has been created at a later date. I know this because the autologon's DefaultUserName has been changed to "Owner" and yet the password remains as it was when I set it in autologon.reg. Can anyone tell me how to prevent the user "Owner" being created, or how to rename it to Leo so I don't have to create a new user?

cmdlines.txt:

[COMMANDS]
"useraccounts.cmd"
"rundll32 advpack.dll,LaunchINFSection nLite.inf,nLiteReg"
"RunOnceEx.cmd"

useraccounts.cmd:

net user Leo removed /add
net localgroup Administrators Leo /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

autologon.reg:

Windows Registry Editor Version 5.00 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Leo"
"DefaultPassword"="removed"
"AutoAdminLogon"="1"


Posted

I created all of the $OEM$ folder contents.

-$OEM$

--cmdlines.txt

--autologon.cmd

--RunOnceEx.cmd

--useraccounts.cmd

--$1

---drivers

----//drivers here

--$$

---system32

----wpa.dbl

----cmdow.exe

Posted (edited)

Owner is made with UnattendSwitch=Yes in winnt.sif, even if u do use "net user xxxx /add". What I do, I autologon once as administrator and use useraccounts.cmd there, also with a "net user Owner /delete" command.

Edited by T D
Posted

So if I put the following in my winnt.sif under [GuiUnattended], it should logon to the Admin account instead of "Owner":

AutoLogon=Yes
AutoLogonCount=1

I guess I can just setup a RunOnceEx to delete the "Owner" account and create my own username?

Posted

Yep. But u HAVE to set in deployment tools setupmgr.exe to autologon Administrator at least once. Otherwise, it will login as Owner and u won't be able to delete user Owner as ur PC is logged on as Owner.

Sounds complicated this post, but easy to grasp.

Posted (edited)

In winnt.sif,

UnattendSwitch=No

But then ull be prompted w/that really annoying blue screen, "lets spend a few minuted setting up ur computer". :realmad:

Edited by T D
Posted

That's a bit odd: I also have UnattendSwitch=Yes but didn't have Owner created. Have a look at your nLite settings.

If nLite is not to blame, you can try putting net user Owner /delete in the useraccounts.cmd.

Guest WebMadman
Posted (edited)
:hello: Edited by WebMadman
Posted

Owner is created while that stupid OOBE screen is on or right after setup, before rebooting so u'd have to del it via GuiRunOnce or ROE.

Guest WebMadman
Posted (edited)
:hello: Edited by WebMadman

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