Jump to content


  • 0
AaronBISSELL

OSD Task Sequence variables

Question

I am sure this had been covered before - but my eyes are tired from google searching. I am praying to the Windows Gods that someone more familiar will be able to point me in the right direction so I can end my suffering.

 

I am setting up a new deployment in SCCM 2012R2.

 

I built a basic task sequence that worked with success. I had a script that pulled the Asset tag and applied it as the computer name without prompts. Everything was beautiful.

 

But that was just the initial stages of my journey. We have locations all around the world and therefor I needed a way to prompt the user to choose his location, which would then place the imaged computer into that OU - and set the time zone settings.

 

I integrated with MDT and added a step into my SCCM task sequence to use the ToolKit Package, gather, and pull up the UDI Wizard.

 

I used the UDI Wizard designer to build a welcome page and then a location settings page that displayed their choice of locations and time zone settings.

 

Now, nothing works. The computer doesn't even join the domain and my naming script doesn't run.

 

I thought perhaps it was the "Rules" setting in the Gather step overriding the rest of the task sequence - so I set it to gather, but not to run the rules - with no change :(

 

I feel this has a lot to do with the task sequence variables - and I simply cannot find a good "How to" online (Which baffles me)

 

If someone could treat me like this website suggests, a "Windows-noob" and walk me though the errors of my ways - I will surely be a better man in the end.

 

Thanks in advance, truly

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Aaron,

 

My guess is that the problem is with a setting in the UDI Wizard, some variable that is getting set and then disallowing the remaining installation (perhaps filtered off).

 

I recommend three things:

 

1) Add a "Pause" step in your task sequence (create a package with your favorite scripting language - example below) and add it after your UDI steps.

 

Dim strComputer

strComputer ="."

ButtonCancelClick

Function ButtonCancelClick
On Error Resume Next
ret = MsgBox("This system has been paused. You can press the F8 key to open a command window to perform additional steps or click OK or Cancel to continue.", vbOK + vbQuestion + vbSystemModal)
End Function

 

2) When it gets to the Pause step, you should be able to press the F8 key to bring up a debug window (this assumes that you enabled your image with "Command Prompt Support" - Check the WinPE settings for this

 

3) Run the OutputTSVariables.wsf script and pipe to a text file (OutputTSVariables.wsf > c:\tmp\variable.log). Open with CMTrace/Notepad. This should show you what the values of all the variables are post UDI Wizard.

 

Here's the MS link for some of the built in variables: http://technet.microsoft.com/en-us/library/bb632442.aspx

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

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.