Skip to content

OSD Task Sequence variables

Featured Replies

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

  • 2 weeks later...

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

Join the conversation

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

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.