Excluding Users using USMT 4.0 in SCCM 2007 SP2

Posted on Updated on

When it comes to backing up user data with USMT 4.0 [hardlinking] in SCCM, there are a few things that most people will want to do.  Such as excluding local computer accounts and excluding domain user profiles older than XX days.  It took a couple of days to get this figured out since there was no one blog post or forum topic which seemingly discussed both of these options.

First things first, read this excellent blog post on How to use USMT 4 hardlinking in a Configuration Manager 2007 Task Sequence

Now, USMT uses Scanstate.exe and Loadstate.exe to backup and restore users [respectively].  Local users can be excluded using switch /ue and old domain user profiles can be excluded using switch /uel.  However, both of these switches cannot be used at the same time because of a precedence order.  For more information, read Understanding USMT 4.0 Behavior with UEL and UE.   So, to exclude local users and old domain users, set task sequence variables

  • OSDMigrateAdditionalCaptureOptions = /nocompress /hardlink /uel:30 (or however many days you want it to be)
  • OSDMigrateAdditionalRestoreOptions = /nocompress /hardlink /ue:%computername%\*

But there is also an undocumented problem.  SCCM adds to the Scanstate/Loadstate parameters, specifically adding the /all switch which says to backup/restore ALL USERS.  This completely goes against being able to use the /ue and/or the /uel switches and will cause scanstate/loadstate to fail!!  So what must be done to fix the problem is to

  1. Select the step to Capture User Files and Settings
  2. Select option “Customize how user profiles are captured”
  3. Click the Files… button
  4. Add files MigUser.xml, MigApp.xml
  5. Repeat the above steps for Restore User Files and Settings

Updated 8/16 – USMT Best Practices states to not use MigUser.xml and MigDocs.xml together, so I’ve removed MigDocs from step 4.

Advertisements

3 thoughts on “Excluding Users using USMT 4.0 in SCCM 2007 SP2

    Mesut said:
    August 16, 2010 at 1:53 am

    Hi, thanks for this article. One question, how would you do this with an UDI task sequence, as an UDI task sequence doesn’t have the “Request State Store” and “Capture user files and settings step” with the option “Customize how user profiles are captured”

      Nicolas Moseley responded:
      August 16, 2010 at 9:05 am

      Mesut, thank you for the feedback and kind words. To be honest, I’ve never used MDT, so I really can’t answer. Heck, I don’t even know what UDI stands for! If others read this, they may be able to offer additional insight.

    […] https://t3chn1ck.wordpress.com/2010/08/13/excluding-users-using-usmt-4-0-in-sccm-sp2/ Posted: Aug 12 2010, 06:16 PM by cnackers | with no comments […]

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s