Skip to content

Computer name in OSD

Featured Replies

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

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

  • Author

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.

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?

  • Author

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.

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

  • Author

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.

  • 2 weeks later...

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.