Standalone task sequence OSD - Computer naming
Is there a way to prompt for the computer name as part of a standalone task sequence build using a vbscript or such like?At the moment it is naming systems as MININT******* and we would like to be able to select the name during the build process. I have read various posts but cant find an easy answer or solution to what we want to do.Any help or advice gratefully received,Chris
April 14th, 2009 1:04pm

Hi Chris,Create a package with the following VBScript: set env = CreateObject("Microsoft.SMS.TSEnvironment") Name = inputbox("Rename Computer" ,"Please enter the new Computer name below:",env("_SMSTSMachineName"),400,0) env("OSDComputerName") = Name Add a "Run command line" step to your Task Sequence, and run the script (put this step right after the "format and partition disk").This will display pop-up box for you to enter the new computer name.Hopefully this answers your question. Ronni Pedersen | MVP | MCTS:Configuration Manager 2007 | MCITP:Enterprise Administrator | MCT
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2009 1:18pm

Thanks Ronni that looks simple and exactly what I need.Where will I need to save the .vbs file for it to run when I create the Run Command Line task?Will the command line just be something likeCSCRIPT "GetPCName.vbs" ?
April 15th, 2009 8:28am

Hi,You need to create a pcakage for the script file. You don't need a program, just the package.And don't forget tocopy the package to the Distribution Point(s).If you need help creating the package let me know, and I'll create a step-by-step guide for you.In the "Run command line" step i your task sequence, select "Package" and the browse to select the package. In the "Command Line" field simply type the name of the script. Don't use CSCRIPT.Ronni Pedersen | MVP | MCTS:Configuration Manager 2007 | MCITP:Enterprise Administrator | MCT
Free Windows Admin Tool Kit Click here and download it now
April 15th, 2009 11:42am

Brilliant, that answers all my little questions how to get the script into and run from the standalone TS media.Thank you very muchfor your help Ronni!
April 15th, 2009 12:38pm

Than you thank you... been looking for this, had other people tell me how with vbs scripts but none worked, this worked perfectly.Onward to deploymentDerek
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2009 5:49pm

Here is a series of articles that I have written on OSD Scripting - they may be of help. http://myitforum.com/cs2/blogs/xneilpetersonx/archive/2008/12/09/custom-osd-scripts-content-list.aspx neilp
June 18th, 2009 10:31am

Hi Ronni The script worked 100% When I associated the machine to a collection/ task sequence, it uses the name from my input. I've been searching for a while for this workaround. Thanks Ronni
Free Windows Admin Tool Kit Click here and download it now
February 21st, 2012 3:07am

Good to know... The TechNet forums is the best place to find answers :)Ronni Pedersen | Configuration Manager MVP | Blog: http://www.ronnipedersen.com/ | Twitter @ronnipedersen
February 21st, 2012 8:13am

Hi all! I am trying to script this outside WinPE, i want to be able to prestage machines from an application like the HTA above. Is it possible to do this? for instance by collecting the DLL's from SCCM PE image, and register them on a Win 7 or W2K8 machine, and run HTA from there. Has anyone tried this? ************** i opened a new thread for this querstion http://social.technet.microsoft.com/Forums/en/configmgrosd/thread/4350e3f7-37b4-460f-933b-7434f8bb5650 Best regards Tor Sverre Eilertsen
Free Windows Admin Tool Kit Click here and download it now
June 27th, 2012 6:01am

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

Other recent topics Other recent topics