If you want to be prompted for the computername during a deployment (works for the R2 release of SCCM 2007) try the following
on your deployment collection, right click and choose modify collection settings
create a new variable called OSDComputerName and leave it blank
Advertise your task sequence to this collection, but make sure that the Task Sequence is not set to mandatory
now, when the Task Sequence executes it will prompt you for the computername during OSD, cool huh ? click on the variable when you see it and enter your desired computername..
Can I script it ?
oh and here's another way from the very talented Michael in Denmark
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator")
Set objWMIService = SWBemlocator.ConnectServer(strComputer,"root\CIMV2",UserName,Password)
Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48)
For Each objItem in colItems
env("OSDComputerName") = objItem.SerialNumber
next
_________________________
Just run this script after the Deploy OS step. It will set the SCCM variable "OSDComputername" to the serial, and the rest will take care of it self...
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
how to prompt for Computername during OSD
If you want to be prompted for the computername during a deployment (works for the R2 release of SCCM 2007) try the following
on your deployment collection, right click and choose modify collection settings
create a new variable called OSDComputerName and leave it blank
Advertise your task sequence to this collection, but make sure that the Task Sequence is not set to mandatory
now, when the Task Sequence executes it will prompt you for the computername during OSD, cool huh ? click on the variable when you see it and enter your desired computername..
Can I script it ?
oh and here's another way from the very talented Michael in Denmark
easy way to change PC name during Deployment
and here's a script sample
_________________________
Just run this script after the Deploy OS step. It will set the SCCM variable "OSDComputername" to the serial, and the rest will take care of it self...
Related reading:-
here's the Technet version of the same
Share this post
Link to post
Share on other sites