Setting up a USMT XML File

madhatter5501
madhatter5501 used Ask the Experts™
on
Hello,

I am trying to write a xml file to migrate pst files, signatures and the nk2 files from outlook.
I am only looking in the default locations for one user.

%appdata%\Microsoft\Signatures\*
%appdata%\Microsoft\Outlook\*.nk2
%localappdata%\application data\Microsoft\Outlook\*.pst

currently the only way I can get this to run is by hard-coding the file paths.

<?xml version="1.0" encoding="UTF-8"?> 
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/test">
<component type="Documents" context="System">
  <displayName>Component to migrate Outlook Signatures and Nickname Cache and psts</displayName>
  <role role="Data">
    <rules>
      <include>
        <objectSet>
		  <pattern type="File">C:\documents and settings\*\application data\microsoft\signatures\* [*]</pattern>
		  <pattern type="File">C:\documents and settings\*\application data\microsoft\outlook\ [*.nk2]</pattern>
		  <pattern type="File">C:\documents and settings\*\local settings\application data\microsoft\outlook\ [*.pst]</pattern>
        </objectSet>
      </include>
    </rules>
  </role>
</component>
</migration>

Open in new window


I would like this to work using variables for the appdata and localappdata but am having trouble getting that to pull the data.

I am looking for any help I can get.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Meir RivkinFull stack Software Engineer

Commented:
so what is the problem?
there are only 3 lines of <pattern> tags in the xml?
maybe i didn;t understand your question, can u elaborate?
I was able to get this to work using variables

Author

Commented:
I was able to figure out the problem

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial