Jump to content

Get rid of creat user account in win7 install


Recommended Posts

I have several images uploaded to my wds server and two different unattend file, one to the image and one for the whole wds.

After I have installed the image to a new computer I get prompted with user account and computer name. I only want to get prompted with computer name, not any creation of local account.

Link to comment
Share on other sites


Exactly.

Bad news, that section of the GUI is a combined page, it is all or none. You cannot separate them, this is a limitation of the windows 7 installation GUI.

Your best bet is to fully automate both settings with your unattend.xml, then run a VBS script during SetupComplete.cmd using the old InputBox to enter a computer name.

Rename.vbs

strRename = InputBox("Enter new computer name")
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colComputers = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")

For Each objComputer in colComputers
err = objComputer.Rename(strRename)
Next

You also need to schedule a reboot before it will take effect.

Edited by MrJinje
Link to comment
Share on other sites

Exactly.

Bad news, that section of the GUI is a combined page, it is all or none. You cannot separate them, this is a limitation of the windows 7 installation GUI.

Your best bet is to fully automate both settings with your unattend.xml, then run a VBS script during SetupComplete.cmd using the old InputBox to enter a computer name.

Rename.vbs

strRename = InputBox("Enter new computer name")
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colComputers = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")

For Each objComputer in colComputers
err = objComputer.Rename(strRename)
Next

You also need to schedule a reboot before it will take effect.

Ok, because I creat local accounts in unattend.xml. I thought I had a setup before where I just get prompted with the computer name and after that were able to log in with my created account.

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