Asking for user input during a Configuration Manager (ConfigMgr) 2007 Task Sequence (TS)

Updated 03/09/2012 modified Jason Sandys link to his new blog page that includes 64-bit version.  Modified the zip file to include both 32-bit and 64-bit of OSDPlusPlus.

I’ve been working on a project for an Operating System Deployment (OSD) where the client wanted some type of user input during a ConfigMgr TS.  The purpose of the user input was to set ConfigMgr variables that can be used later on during the TS to do certain things based on the users answers.  It’s easy to do with Microsoft Deployment Toolkit (MDT) alone or MDT integrated with ConfigMgr but a little more difficult using 100% ConfigMgr.  What I ended up doing was using ServiceUI to display an exe capturing the users answers and setting them as variables so the TS could use them later on.

How to do it:

  1. Get either the 32 or 64 bit version of ServiceUI.exe from your installation of MDT.  Make sure you get the correct version so it matches your WinPE version.  You can grab it below if you want.
  2. Get Jason’ Sandys’ OSD++.  You can hit his MyITforum page or grab it below.
  3. Modify your OSD++ xml file to do what you want it to do.  There is a PDF that explains how to use OSD++ in great detail in the zip file.
  4. Create a package in ConfigMgr that contains the ServiceUI.exe.  Make sure it also contains OSD++ exe, and your OSD++ xml.
  5. Add a task that is toward the beginning of your TS that uses that package with the following command line
    ServiceUI.exe –session:1 osdplusplus.exe
    That will allow osdplusplus.exe to appear on the screen during the TS.
    I was unable to use the –Process syntax as described in Cameron’s blog.  I had to use the –Session syntax.  From my understanding WinPE runs in Session 0.  With Vista and above there is a user Session 1.  From what I saw everything should run in session 0 in WinPE but I had to call Session 1 to get this to work.serviceui
  6. That’s about it.  When the TS runs it will pause for OSD++ where OSD++ passes variables to the TS so you can use it later on however you want.
    screenshot.14screenshot.15screenshot.16screenshot.17
    screenshot.18
    Our OSDplusplus xml files as of now.  I still need to work on it a bit.
    screenshot.19

References:

Jason Sandys’ OSD++ on MyITfourm: http://blog.configmgrftw.com/?page_id=257

Cameron TechNet Blog explaining ServiceUI.exe: http://blogs.technet.com/b/cameronk/archive/2011/01/25/can-i-use-serviceui-exe-to-launch-other-programs-besides-the-udi-setup-wizard.aspx
http://blogs.technet.com/b/cameronk/archive/2010/04/27/creating-a-user-interactive-task-sequence-experience.aspx

Files needed www.adamjrafels.com/BlogFiles/ServiceUI-OSDplusPLUS.zip

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s