rob343 Posted June 4, 2014 Report post Posted June 4, 2014 Hi I am currently using a little script to prompt for computer name for unknown computers (has some error checking in). but I have had a request from the business to ask for every rebuild, and obviously it won't ask if its a known computer. any suggestions. thanks Rob Quote Share this post Link to post Share on other sites More sharing options...
Jorgen Nilsson Posted June 4, 2014 Report post Posted June 4, 2014 Hi, You mean that you should only prompt if the computer is unknown? or how you should do it? If you should only prompt if the computer is unknown check the OSDComputername variable if it doens't start with "minint" then the computer is known. Regards,Jörgen Quote Share this post Link to post Share on other sites More sharing options...
rob343 Posted June 4, 2014 Report post Posted June 4, 2014 No basically they want it to ask every time even if the machine is known in SCCM, as our computer names reflect our sites and the engineers move them around. so when they rebuild on new site the device needs a new name, and they don't want to have to manually rename after build. Quote Share this post Link to post Share on other sites More sharing options...
Mikey C Posted June 4, 2014 Report post Posted June 4, 2014 our computer names reflect our sites and the engineers move them around..............they don't want to have to manually rename after build. So you are saying that you want to automate the process of naming a PC to reflect "our sites"? Good, this is a much better idea than relying on technicians to not get a typo. Human beings make mistakes, they cannot be relied upon. You could set task sequence variables based on the information that is unique to each site. For example a subnet is detected when a device is image on site. Then you vbs can use that information to generate and populate the OSDComputerName - Is this the kind of thing you are trying to achieve? Quote Share this post Link to post Share on other sites More sharing options...
rob343 Posted June 5, 2014 Report post Posted June 5, 2014 yeah sort of, its just the How to get it to prompt if the device is already a member of SCCM so effectively renaming the device. or remove it before the main seq kicks in. Quote Share this post Link to post Share on other sites More sharing options...
Mikey C Posted June 5, 2014 Report post Posted June 5, 2014 I do not understand what your requirements are, you say you are trying to name PCs based on site, therefore automate the PC naming, but you continue to say you want the script to prompt for a computer name... Quote Share this post Link to post Share on other sites More sharing options...
rob343 Posted June 5, 2014 Report post Posted June 5, 2014 i all have a script which prompts for computer name for all unknown computers. But i would like the same to work for Known computers instead of it reusing the information already recorded in SCCM (forget the sites thing this will be done manually by the engineer rebuilding the device when prompted for computername) apologies if i didn't explain it very well. Quote Share this post Link to post Share on other sites More sharing options...
Mikey C Posted June 16, 2014 Report post Posted June 16, 2014 i all have a script which prompts for computer name for all unknown computers. But i would like the same to work for Known computers instead of it reusing the information already recorded in SCCM (forget the sites thing this will be done manually by the engineer rebuilding the device when prompted for computername) apologies if i didn't explain it very well. Post the script on here Quote Share this post Link to post Share on other sites More sharing options...