Setting up a USMT XML File

madhatter5501 used Ask the Experts™

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.

%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="">
<component type="Documents" context="System">
  <displayName>Component to migrate Outlook Signatures and Nickname Cache and psts</displayName>
  <role role="Data">
		  <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>

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.
Watch Question

Do more with

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

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


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