Is there a way to enter the computer name in the KBE after selecting an image to deploy? (Using a native .wim image with a custom unattend.xml)
I've been trying to streamline our imaging process, and being able to enter the computer name before kicking off an image would save a lot of time. Currently I'm mounting a native .wim image to the drive and copying a modified unattend.xml file to the panther directory with the ComputerName attribute missing so that OOBE prompts for a computer name. After entering the computer name a bunch of automated installs kick off that take about as long as mounting the image itself. Setup will just sit there waiting for the technician to enter a name, so if you start an image and forget about it, it will still take a while to complete after you remember. Pretty inconvenient.
I've seen that it's possible to modify the GUI in the "Deploy an Image to this Machine" screen using just a preinstall task as this happens when you include the USMT Scan User States task - so would it be possible to create a task that adds a text box for a computer name? I see that the Get Computer Name task reads the computer name from the registry and saves the name in a file in petemp named by mac address, I think the same thing would work here too. The mid-level post install task that copies over the unattend.xml file could then be modified to copy the base xml to the temp directory, modify it with the computer name attribute, and then move the modified file to the panther directory on the deployed image.
I tried looking at the Scan User States task and couldn't really figure out how it modified the KBE GUI, so I'm kind of stuck now. Any ideas or input would be greatly appreciated.
Answers (2)
http://www.kace.com/support/resources/kb/article/Get-Set-ComputerName
Here you go http://www.kace.com/support/resources/kb/article/Get-Set-ComputerName
or another method http://www.kace.com/support/resources/kb/article/How-to-rename-a-computer-and-join-it-to-a-Windows-domain-Image-Deployment?action=artikel&cat=54&id=763&artlang=en
Comments:
-
Interesting. I didn't realize that preinstall task could take switches. Thanks for the info. After posting this I tried modifying the getcomputername.vbs script to remove the registry searches and just set the computer name variable it uses using a prompt, works pretty well. Not as pretty as modifying the GUI but functional. The Apply Computer Name postinstall task works great with it without any modifications. - djit 12 years ago
Might need modification to work with images, but this will change computer names for you: