www.infralib.com

www.infralib.com
Please visit my new site http://www.infralib.com for my and other authors' newer posts, articles. We will also have forums, videos, webcasts and etc.

Thursday 6 December 2012

How to prompt for computer name in MDT/SCCM Task Sequence (OSD)

I was using Collection Variables in Collection Settings to ask Computer Name [OSDComputerName] at the beginning of my OSD Task Sequences. It was useful but it doesn't have confirmation or correction features.

So I wanted to change it to something asks if the entered computer names is correct and allow user to change name before final confirmation.

And it worked nicely : )

My new prompt for the computer name script is









Feel free to use, change or optimize.

You can create a SCCM Package and run this script via "Run Command Line" action in your task sequence (cscript "PromptForComputerName.wsf").

Or you can place it into your MDT Scripts (Toolkit package) and  run "Use Toolkit Package" action before it from, then run (cscript "%deployroot%\Personal\PromptForComputerName.wsf") in a "Run Command Line" action just after "Use Toolkit Package".


2 comments:

Anonymous said...

Hey Osman
I am working towards ZTI (as far as possible) using MDT 2012 on a 2008 r2 box for migration from XP to W7 Pro sp1.
I need machine to join domain using Dell service tag preferably, or if not, be prompted to supply this name.
At the moment I can see test machine joins domain with auto generated name only.
Please bear in mind I am new to this tool and migration in general.
Any help would be much appreciated!
Thanks
Carl W

Osman Shener said...

Hi, I think you can use AssetTag variable directly as osd gathers this information if it exists, so create a ne TS Variable for computer name and use AssetTag to assign a value if AssetTag is not exists. And ask computer name if required.