Migration of PST files using USMT
Hi, I have question regarding migration of PST files from Windows XP with Outlook 2007 to Windows 7 with Oultook 2010 using USMT. PST files are localy in default path: C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook I would like to migrate them in Windows 7 into: C:\Users\user\AppData\Roaming\Microsoft\Outlook I use this xml but it seems it doesn't work: <migration urlid="http://www.microsoft.com/migration/1.0/m"> <component type="Documents" context="System"> <displayName>Migrate PST files</displayName> <role role="Data"> <rules> <include> <objectSet> <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script> </objectSet> </include> <locationModify script="MigXmlHelper.Move('%CSIDL_APPDATA%\Microsoft\Outlook')"> <objectSet> <script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script> </objectSet> </locationModify> </rules> </role> </component> </migration> Can someone with more experience in xml help me. Thanks
October 9th, 2012 3:48pm

I usually use a RelativMove, so the component, with fixed paths would look something like this: <component type="Documents" context="System"> <displayName>Migrate PST files</displayName> <role role="Data"> <rules> <include> <objectSet> <pattern type="File">C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\* [*.pst]</pattern> </objectSet> </include> <locationModify script="MigXmlHelper.RelativeMove(C:\SpecificFolder\, C:\Users\user\AppData\Roaming\Microsoft\Outlook\)"> <objectSet> <pattern type="File>C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\* [*.pst]</pattern> </objectSet> </locationModify> </rules> </role> </component> My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
Free Windows Admin Tool Kit Click here and download it now
October 9th, 2012 4:18pm

The first issue regarding moving PST files from C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook to C:\Users\user\AppData\Roaming\Microsoft\Outlook is resolved by the folowing XML code: <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/custom"><component type="System" context="User"><displayName _locID="miguser.PST">PST</displayName><role role="Settings"><rules><include filter="MigXmlHelper.IgnoreIrrelevantLinks()"><objectSet><pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook\* [*.pst]</pattern></objectSet></include><locationModify script="MigXmlHelper.RelativeMove('%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook','%CSIDL_APPDATA%\Microsoft\Outlook')"><objectSet><pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook\* [*.pst]</pattern></objectSet></locationModify></rules></role></component></migration> My Blog: http://tompopov.blogspot.ca
October 10th, 2012 6:08pm

You could try to exclude the default pst-file with something like this: <exclude> <objectSet> <pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook [Name.pst]</pattern> </objectSet> </exclude> Also take a look here for some examples: http://technet.microsoft.com/en-us/library/dd560762(v=ws.10).aspxMy Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
Free Windows Admin Tool Kit Click here and download it now
October 11th, 2012 3:06pm

Peter, thank you for help. My Blog: http://tompopov.blogspot.ca
October 15th, 2012 3:44pm

I usually use a RelativMove, so the component, with fixed paths would look something like this: <component type="Documents" context="System"> <displayName>Migrate PST files</displayName> <role role="Data"> <rules> <include> <objectSet> <pattern type="File">C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\* [*.pst]</pattern> </objectSet> </include> <locationModify script="MigXmlHelper.RelativeMove(C:\SpecificFolder\, C:\Users\user\AppData\Roaming\Microsoft\Outlook\)"> <objectSet> <pattern type="File>C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook\* [*.pst]</pattern> </objectSet> </locationModify> </rules> </role> </component> My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude The problem here is that the Userprofile directory is not a fixed path, it's unique for which ever user happens to be using the computer. Some form of variable would need to be parsed in order for this to work correctly.Kriss Milne | MCSE *Please click 'Vote As Helpful' or 'Mark as Answer' if a post has helped you or answered your question*
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2012 7:33am

Correct, for the idea I created it with a lot of copy-and-paste. The part until Application Data and AppData\Roaming can be replaced with CSIDL_APPDATA. For a complete list of all recognized variables, see: http://technet.microsoft.com/en-us/library/dd560744(v=ws.10).aspxMy Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
October 28th, 2012 2:31pm

I inserted the code below and I modified for a particular user and it works: <migration urlid="http://www.microsoft.com/migration/1.0/m"> <component type="Documents" context="System"> <displayName>Migrate PST files</displayName> <role role="Data"> <rules> <include> <objectSet> <pattern type="File">C:\Documents and Settings\user3\Local Settings\Application Data\Microsoft\Outlook\* [*.pst]</pattern> </objectSet> </include> <locationModify script="MigXmlHelper.RelativeMove('C:\Documents and Settings\user3\Local Settings\Application Data\Microsoft\Outlook\', 'C:\Users\user3\AppData\Roaming\Microsoft\Outlook\')"> <objectSet> <pattern type="File">C:\Documents and Settings\user3\Local Settings\Application Data\Microsoft\Outlook\* [*.pst]</pattern> </objectSet> </locationModify> </rules> </role> </component> </migration> But now there are other issues. How this can be done for all users? How to modify USMT Outlook setings showing that now PST file is located in new location? How to delete original PST file which is also migrated in: C:\Users\user\AppData\Local\Microsoft\Outlook ? Thanks
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2012 2:42pm

Take a look at my post a few minutes before yours :)My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
October 28th, 2012 2:45pm

Ok Peter, I will try with variables and let you know for results. ThanksMy blog: http://tompopov.blogspot.ca/
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2012 2:53pm

The first issue regarding moving PST files from C:\Documents and Settings\user\Local Settings\Application Data\Microsoft\Outlook to C:\Users\user\AppData\Roaming\Microsoft\Outlook is resolved by the folowing XML code: <migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/custom"><component type="System" context="User"><displayName _locID="miguser.PST">PST</displayName><role role="Settings"><detects><detect><condition>MigXmlHelper.DoesObjectExist("File","%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook")</condition></detect></detects><rules><include filter="MigXmlHelper.IgnoreIrrelevantLinks()"><objectSet><pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook\* [*.pst]</pattern></objectSet></include><locationModify script="MigXmlHelper.RelativeMove('%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook','%CSIDL_APPDATA%\Microsoft\Outlook')"><objectSet><pattern type="File">%CSIDL_LOCAL_APPDATA%\Microsoft\Outlook\* [*.pst]</pattern></objectSet></locationModify></rules></role></component></migration> My Blog: http://tompopov.blogspot.ca
October 28th, 2012 5:40pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics