Jump to content
Sign in to follow this  
SDothard

USMT custom config.xml syntax

Recommended Posts

SDothard

I'm pretty new to autoit scripting and USMT. 

I'm trying to migrate my agencies windows xp to Windows 7. 

I just need to migrate the current logged users profile, but I am trying to copy everything except the "Local Settings" in the users profile.

Here is my script and error log.

This is my custom config.xml (is the "%CSILD_PROFILE% used correctly?)

<?xml version="1.0" encoding="UTF-8"?>
    <component type="Documents" context="user">
        <displayName>LocalSettings</displayName>
        <role role="Data">
            <rules>
         <include>
            <objectSet>
                 <pattern type="File">%CSIDL_PROFILE%* [*]</pattern>
            </objectSet>
          </include>
         <exclude>
             <objectSet>
                   <pattern type="File">%CSIDL_PROFILE%Local Settings* [*]</pattern>
             </objectSet>
         </exclude>
            </rules>
        </role>
    </component>
</migration>
 
For my autoit script I'm using the User State Migration Tool Front End
;~ Coded by Ian Maxwell (llewxam @ AutoIt forum)
 
Here are my scanstate lines.
If $XPMode == False Then
_Extract($XPMode)
ShellExecuteWait(@TempDir & "USMTscanstate.exe", Chr(34) & $TargetPath & Chr(34) & " /config:config.xml /localonly /vsc /efs:decryptcopy" & $OverwriteArg & $NoCompressArg & $OfflineArg & " /r:" & $TimesToRetryArg & " /w:" & $SecondsToWaitArg & " /L:" & Chr(34) & $LogFile & Chr(34) & " /v:13 /c /ue:** /uel:0 /i:" & @TempDir & "USMTMigApp.xml /i:" & @TempDir & "USMTMigDocs.xml /i:" & @TempDir & "USMTMigUser.xml", @TempDir)
Else
_Extract($XPMode)
ShellExecuteWait(@TempDir & "USMTscanstate.exe", Chr(34) & $TargetPath & Chr(34) & " /config:config.xml /targetxp /localonly /efs:decryptcopy" & $OverwriteArg & $NoCompressArg & " /r:" & $TimesToRetryArg & " /w:" & $SecondsToWaitArg & " /L:" & Chr(34) & $LogFile & Chr(34) & " /v:13 /c /ue:** /uel:0 /i:" & @TempDir & "USMTMigApp.xml /i:" & @TempDir & "USMTMigSys.xml /i:" & @TempDir & "USMTMigUser.xml", @TempDir)
EndIf
 
Do
 
Please help.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×