Jump to content

Recommended Posts

Posted

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.


Posted (edited)

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
Posted

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.

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