Is there a way to set a Computer Name in SCCM to the serial number without using MDT?
I'm trying to use the Set Task Sequence Variable step in an SCCM Task Sequence and setting the Task Sequence Variable to: CLRDP%SERIALNUMBER% and I'm executing this step between Apply Operating System and Apply Windows Settings. Is %SERIALNUMBER% the correct value to be inserting here. How does that variable get populated? We're trying to accomplish everything without using MDT but do I need to run a Gather step in MDT to accomplish this?
October 7th, 2010 2:14am

Yes you can set the machine name without using MDT by either setting OSDComputerName on a collection or in your task sequence if you specify on the TS then i would do very early on before the gather step. Set OSDComputerName = CLRDP%SERIALNUMBER% Thanks, BrandonThanks, Brandon
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2010 2:54am

If use MDT then gather is the step that sets the %serialnumber% variable, so it should defenitly be after use "toolkit" and "gather", but before Apply windows settings .With out MDT there is no %serialnumber% variable.. or you can use this script (also before apply windows settings) Set SWBemlocator = CreateObject("WbemScripting.SWbemLocator") Set objWMIService = SWBemlocator.ConnectServer(strComputer,"root\CIMV2",UserName,Password) Set colItems = objWMIService.ExecQuery("Select * from Win32_BIOS",,48) Set env = CreateObject("Microsoft.SMS.TSEnvironment") For Each objItem in colItems env("OSDComputerName") = "CLRDP" & objItem.SerialNumber Next Michaelhttp://kongkuba1.spaces.live.com
October 7th, 2010 12:08pm

what we did was use a HTA and add that to the boot image to capture computer name, ou etc
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2010 3:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics