Wednesday, December 1, 2010

How to customize copy of user's profile using USMT 4.0

UEL option in USMT is to exclude user’s profile according to last logon date. We can exclude it by number of days, a specific date or any currently logged on user.
UE option allows us to exclude user profiles from being migrated based on their name. It supports both domain and local users.
E.g.:
  • To exclude Sally user profile: SCANSTATE.EXE /ue:*\Sally
  • To exclude test domain user named Sally: SCANSTATE.EXE /ue:Test\Sally*
  • To exclude any profile not logged in more than 100 days: SCANSTATE.EXE /uel:100
  • To exclude any profile those have not been logged on since 2010/06/01:                               SCANSTATE.EXE /uel:2010/06/01

How to migrate .pst and .ost through USMT 4.0?

By default, USMT 4.0 migrates PST files that are linked to a user’s outlook profile and does not copy those PST which are not attached with profile. USMT does not support .ost migration. E.g. PST’s stored on local drive but not actually attached to outlook will not migrate by default.
In order to migrate PST files, here is the working script which will gather all PST files from all fixed drives:
<?xml version="1.0" encoding="utf-8" ?>
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/pst">
  <component type="Documents" context="UserAndSystem">
    <displayName>All PST migrated from all fixed drives, regardless of location</displayName>
    <role role="Data">
      <rules>
        <include>
          <objectSet>
            <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script>
          </objectSet>
        </include>
      </rules>
    </role>
  </component>
</migration>

Paste this script into notepad and save as PST.xml. Now, the main idea behind this script is that it should be saved in System 32 folder before running Task sequence. Create a script that will copy the PST.XML file in %System 32% folder of the system and add /i:pst.xml switch to scan state and load state.

This worked fine for me and we have upgraded our whole environment from XP to Windows 7.