Prompt for computer name in KBE or as preinstall task
My organization uses a very specific naming standard that can't be automated. Has anyone had success with a script or method of prompting for a rename? We don't have a lot of control over the technicians that do imaging at each location, and a lot of computers are coming up with random sysprep names when they join our domain. We suspect it happens when they interrupt the image and lose the temp file with the name. If they have an option to rename while still in the KBE or they have an image option that includes a preinstall task to prompt for it, that would cut down on a lot of secondary work after imaging.
Answers (2)
Basically, use getcomputername.exe /dialog even though it doesn't fit exactly with my overall master plan.
This program from the Kace support site works wonders. We have the same naming situation, and have used this to give the install a name while it is in the KBE. The computer runs the install, and then a postinstall task applies the name.This is the only solution I've gotten to work 100% of the time for us.
http://www.kace.com/support/resources/kb/article/Get-Set-ComputerName?action=artikel&id=1137
Edit: We use the dialog box part of the program.
Comments:
-
I will have to see if we can incorporate this into our scenario. Ideally I need a .vbs or something to detect if the name doesn't begin with certain characters and then use the /dialog option, but all other times just run normally. - nheyne 11 years ago
-
Thanks again for the suggestion, I was able to incorporate the /dialog option and make it work. - nheyne 11 years ago
You can also add a postinstall task to do a naming rule which uses wsname. From there you could create a file that has the mac-address to host name.
Comments:
-
For our environment with unique names not based on machine info, I haven't been able to come up with a scenario where wsname can be used. It's a shame because we use it for other projects and it works great. - nheyne 11 years ago