Automated OSDComputerName
Hi I have written a vbs that will Compile the computer name from Chassis Type, AD SIte, and Serial Number it compliles the name fine but I cannot get it to pass it to the OSDComputerName variable I have used the below code to do it
'Sets The OSDComputername for SCCM
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
env("OSDComputerName") = OSDName
(OSDName is the compile name Variable)
The script is a package, it is after Format Partition Disk and before Apply Operating System in the OSD Task Sequence.
My Question is do I need to set a Task Sequence Variable to OSDComputerName and leave it blank or will this code above create the OSDComputerName
David
May 18th, 2011 12:03am
The syntax looks right.. try and place a WScript.Echo env("OSDComputername") in the script, and check the smsts.log to see if the pc name is actually assignedMichael Petersen http://blog.coretech.dk/mip/
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2011 2:40am
Hi,
I agree with Michael, If you create a empty task sequence variable for OSDcomputername in the SCCM console you will be prompted for the computername before the script is run.
/Jörgen-- visit my System center blog at http://ccmexec.com --
May 18th, 2011 3:07am
Hi,
I agree with Michael, If you create a empty task sequence variable for OSDcomputername in the SCCM console you will be prompted for the computername before the script is run.
/Jörgen-- visit my System center blog at http://ccmexec.com --
Free Windows Admin Tool Kit Click here and download it now
May 18th, 2011 3:07am