Jump to content


  • 0
anyweb

sample XP to Windows 7 task sequences

Question

hi all,

 

as this is a common requirement, here are two Task Sequences I use for demoing Windows XP migrations to Windows 7,

 

Related Reading:-

 

OSDMigrateAdditionalCaptureOptions on Technet

OSDMigrateAdditionalRestoreOptions on Technet

 

Before you can use these sample task sequences you must have done the following Steps.

 

Using Computer Association add a computer to your Deploy XP collection, and then Deploy Windows XP to that computer. Once Deployed with XP you can use Direct Membership to add that computer to the Migrate XP to 7 Collection described below.

 

XP to Windows 7 Demo - X86 using Hardlinking

 

The first task sequence XP to Windows 7 Demo - X86 using Hardlinking.xml will migrate XP to Windows 7 using hardlinking

 

XP to Windows 7 Demo - X86 using Hardlinking.xml

 

XP to Windows 7 Demo - X86 using SMP

 

The second one uses a SMP *State Migration Point*

 

XP to W7 Demo - X86 using SMP.xml

 

simply import these task sequences into ConfigMgr, and replace the missing package references (configmgr X86 boot images, microsoft deployment 2010 settings, mdt2010 files, windows 7 autologin enable package, usmt4 package and the Windows 7 X86 WIM file itself).

 

 

See below screenshots to help you with that

 

 

Task Sequence References with hardlinking

 

xp to w7 demo references w hardlinking.jpg

 

 

Task Sequence References with SMP

 

xp to w7 demo references w smp.jpg

 

and then advertise the task sequences to a migrate XP to Windows 7 collection

 

migrate collection.jpg

 

add computers to the Migrate XP to Windows 7 collection and kick off the appropriate TS via RAP.

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

I have tried to do the Hard-Link task sequence and everything is working okay with the USMT etc. My issue is i am trying to make this upgrade a mandatory task sequence so we can upgrade all our XP machines to windows 7. What is occurring is the at the end after it configures the SCCM client it is trying to autologin as the administrator of the local machine? Why is this? I did not see any setting for autologin in the task sequence? Can someone help me with this. Is this because i am sending the task sequence to the workstation as mandatory?

Share this post


Link to post
Share on other sites

  • 0

I have setup the demo for XP to Win7 refresh including USMT with hard linking and am having some issues. If im troubleshooting correctly i think there is an issue copying the package to the client.

The c:\_SMStaskSequince folder is created but Packages folder is empty. I have set the sequence to stop on errors and it stopping on "Capture user Files and settings" here is the smsts.log:

 

 

==============================[ OSDMigrateUserState.exe ]============================== OSDUSMT 5/2/2012 2:00:33 PM 1600 (0x0640)

Initializing from environment successful OSDUSMT 5/2/2012 2:00:33 PM 1600 (0x0640)

Trying to resolve package path for packageID - ABC00012 OSDUSMT 5/2/2012 2:00:33 PM 1600 (0x0640)

No http based locations are available. SMB based locations will be attempted now. OSDUSMT 5/2/2012 2:00:33 PM 1600 (0x0640)

Successfully connected to "\\SCCM2007VM.WME.COM\SMSPKGC$\ABC00012" OSDUSMT 5/2/2012 2:00:33 PM 1600 (0x0640)

USMT package path = 'C:\_SMSTaskSequence\Packages\ABC00012' OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Initiailization succeeded OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

EncryptionKey ENV var not found. This may be because Local state Store is used. OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Building Default USMT params successful OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Adding config files to user params successful OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Additional user defined options = "/hardlink /nocompress" OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Building user defined params successful OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Building USMT command successful OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Creating directory "C:\_SMSTaskSequence\UserState" OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Executing command line: "C:\_SMSTaskSequence\Packages\ABC00012\scanstate.exe" "C:\_SMSTaskSequence\UserState" /o /localonly /c /efs:copyraw /v:5 /l:"C:\WINDOWS\system32\CCM\Logs\SMSTSLog\scanstate.log" /progress:"C:\WINDOWS\system32\CCM\Logs\SMSTSLog\scanstateprogress.log" /i:"C:\_SMSTaskSequence\Packages\ABC00012\x86\migapp.xml" /i:"C:\_SMSTaskSequence\Packages\ABC00012\x86\migdocs.xml" /i:"C:\_SMSTaskSequence\Packages\ABC00012\x86\miguser.xml" /hardlink /nocompress OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

CreateProcess failed. Code(0x800700C1) OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Command line execution failed (800700C1) OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

Invoking ReleaseSource on USMTPackagePath C:\_SMSTaskSequence\Packages\ABC00012 OSDUSMT 5/2/2012 2:00:53 PM 1600 (0x0640)

OSDMigrateUserState finished: 0x800700c1 OSDUSMT 5/2/2012 2:00:55 PM 1600 (0x0640)

Process completed with exit code 2147942593 TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

!--------------------------------------------------------------------------------------------! TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Failed to run the action: Capture User Files and Settings.

is not a valid Win32 application. (Error: 800700C1; Source: Windows) TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Sending status message . . . TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Send a task execution status message SMS_TSExecution_ActionFailError TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Formatted header: TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:7EFEEDA6-12C4-4119-B596-961020B156CC</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-05-02T21:00:55Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="4316"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>

TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Set a global environment variable _SMSTSLastActionRetCode=-2147024703 TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Clear local default environment TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Let the parent group (Capture User Files and Settings) decides whether to continue execution TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Let the parent group (Capture Files and Settings) decide whether to continue execution TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

The execution of the group (Capture Files and Settings) has failed and the execution has been aborted. An action failed.

Operation aborted (Error: 80004004; Source: Windows) TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Failed to run the last action: Capture User Files and Settings. Execution of task sequence failed.

is not a valid Win32 application. (Error: 800700C1; Source: Windows) TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Sending status message . . . TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Send a task execution status message SMS_TSExecution_TaskSequenceFailError TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Formatted header: TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:7EFEEDA6-12C4-4119-B596-961020B156CC</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-05-02T21:00:55Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="2164"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>

TSManager 5/2/2012 2:00:55 PM 2148 (0x0864)

Task Sequence Engine failed! Code: enExecutionFail TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

**************************************************************************** TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Task sequence execution failed with error code 80004005 TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Cleaning Up. Removing Authenticator TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Cleaning up task sequence folder TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Successfully unregistered Task Sequencing Environment COM Interface. TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Executing command line: "C:\WINDOWS\system32\CCM\TsProgressUI.exe" /Unregister TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

==========[ TsProgressUI started in process 548 ]========== TsProgressUI 5/2/2012 2:08:14 PM 1292 (0x050C)

Unregistering COM classes TsProgressUI 5/2/2012 2:08:14 PM 1292 (0x050C)

Shutdown complete. TsProgressUI 5/2/2012 2:08:14 PM 1292 (0x050C)

Process completed with exit code 0 TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Successfully unregistered TS Progress UI. TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Start to cleanup TS policy TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

End TS policy cleanup TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Error executing Task Sequence Manager service. Code 0x80004005 TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Sending error status message TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Formatted header: TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:7EFEEDA6-12C4-4119-B596-961020B156CC</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2012-05-02T21:08:14Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="1166"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg>

TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Successfully finalized logs to SMS client log directory from C:\WINDOWS\system32\CCM\Logs TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Resuming SMS Components TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Waiting for CcmExec service to be fully operational TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

CcmExec service is up and fully operational TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Resume for CCM component SoftwareDistribution requested TSManager 5/2/2012 2:08:14 PM 2148 (0x0864)

Resume for CCM component SoftwareUpdates requested TSManager 5/2/2012 2:08:15 PM 2148 (0x0864)

Attempting to release request using {0158473B-6E15-433A-AD97-510317ACA384} TSManager 5/2/2012 2:08:15 PM 2148 (0x0864)

ReleaseRequest succeeded TSManager 5/2/2012 2:08:15 PM 2148 (0x0864)

Failed to delete registry value HKLM\Software\Microsoft\SMS\Task Sequence\System Health Agent. Error code 0x80070002 TSManager 5/2/2012 2:08:15 PM 2148 (0x0864)

Stopping Task Sequence Manager service TSManager 5/2/2012 2:08:15 PM 2148 (0x0864)

Share this post


Link to post
Share on other sites

  • 0

Here is my task:

 

<?xml version="1.0"?>

<SmsTaskSequencePackage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<BootImageID>ABC00019</BootImageID>

<Category>Microsoft Deployment Toolkit</Category>

<DependentProgram />

<Description>XP to W7 X86 using Hardlinking</Description>

<Duration>360</Duration>

<Name>XP to W7 Demo - X86 using Hardlinking-ABC0002F</Name>

<ProgramFlags>152084496</ProgramFlags>

<SequenceData>

<sequence version="3.00">

<referenceList>

<reference package="ABC00030" />

<reference package="ABC0002A" />

<reference package="ABC0000B" />

<reference package="ABC00012" />

</referenceList>

<globalVarList>

<variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering">false</variable>

<variable name="OSDAdapterCount" property="NumAdapters">0</variable>

</globalVarList>

<group name="Capture Files and Settings" description="Actions to capture files and settings in the original operating system">

<condition>

<expression type="SMS_TaskSequence_VariableConditionExpression">

<variable name="Operator">equals</variable>

<variable name="Value">false</variable>

<variable name="Variable">_SMSTSInWinPE</variable>

</expression>

</condition>

<group name="Capture User Files and Settings" description="Capture User Files and Settings">

<step type="SMS_TaskSequence_SetVariableAction" name="Set Local State Location" description="Provide a path in this case we use a variable" runIn="WinPEandFullOS" successCodeList="0">

<action>tsenv.exe "OSDStateStorePath=%_SMSTSUserStatePath%"</action>

<defaultVarList>

<variable name="VariableName" property="VariableName" hidden="true">OSDStateStorePath</variable>

<variable name="VariableValue" property="VariableValue" hidden="true">%_SMSTSUserStatePath%</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_SetVariableAction" name="Set Hard-link Scan Parameters" description="" runIn="WinPEandFullOS" successCodeList="0">

<action>tsenv.exe "OSDMigrateAdditionalCaptureOptions=/hardlink /nocompress"</action>

<defaultVarList>

<variable name="VariableName" property="VariableName" hidden="true">OSDMigrateAdditionalCaptureOptions</variable>

<variable name="VariableValue" property="VariableValue" hidden="true">/hardlink /nocompress</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_SetVariableAction" name="Set Hard-link Load Parameters" description="" runIn="WinPEandFullOS" successCodeList="0">

<action>tsenv.exe "OSDMigrateAdditionalRestoreOptions=/Hardlink /nocompress"</action>

<defaultVarList>

<variable name="VariableName" property="VariableName" hidden="true">OSDMigrateAdditionalRestoreOptions</variable>

<variable name="VariableValue" property="VariableValue" hidden="true">/Hardlink /nocompress</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_CaptureUserStateAction" name="Capture User Files and Settings" description="use a USMT 4 package here making sure to point to the USMT 4 source folder with both X86 and X64 sub folders present." runIn="FullOS" successCodeList="0">

<action>osdmigrateuserstate.exe /collect /continueOnError:%OSDMigrateContinueOnLockedFiles% /skipefs:%OSDMigrateSkipEncryptedFiles%</action>

<defaultVarList>

<variable name="OSDMigrateConfigFiles" property="ConfigFiles">migapp.xml,migdocs.xml,miguser.xml</variable>

<variable name="OSDMigrateContinueOnLockedFiles" property="ContinueOnLockedFiles">true</variable>

<variable name="OSDMigrateEnableVerboseLogging" property="EnableVerboseLogging">true</variable>

<variable name="OSDMigrateMode" property="Mode">Advanced</variable>

<variable name="OSDMigrateSkipEncryptedFiles" property="SkipEncryptedFiles">false</variable>

<variable name="_OSDMigrateUsmtPackageID" property="UsmtPackageID">ABC00030</variable>

</defaultVarList>

</step>

</group>

</group>

<group name="Install Operating System" description="Actions to run in Windows PE to install and configure the image">

<step type="SMS_TaskSequence_RebootAction" name="Restart in Windows PE" description="" runIn="WinPEandFullOS" successCodeList="0">

<condition>

<expression type="SMS_TaskSequence_VariableConditionExpression">

<variable name="Operator">equals</variable>

<variable name="Value">false</variable>

<variable name="Variable">_SMSTSInWinPE</variable>

</expression>

</condition>

<action>smsboot.exe /target:WinPE</action>

<defaultVarList>

<variable name="SMSRebootMessage" property="Message">A new Microsoft Windows operating system is being installed. The computer must reboot to continue.</variable>

<variable name="SMSRebootTimeout" property="MessageTimeout">10</variable>

<variable name="SMSRebootTarget" property="Target" hidden="true">WinPE</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_ApplyOperatingSystemAction" name="Apply Operating System" description="Actions to apply operating system the unattend.xml file used here is customised using Windows SIM, see www.windows-noob.com" runIn="WinPE" successCodeList="0">

<action>OSDApplyOS.exe /image:ABC0002A,%OSDImageIndex%</action>

<defaultVarList>

<variable name="OSDImageIndex" property="ImageIndex">1</variable>

<variable name="ImagePackageID" property="ImagePackageID" hidden="true">ABC0002A</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_ApplyWindowsSettingsAction" name="Apply Windows Settings" description="Actions to apply windows settings" runIn="WinPE" successCodeList="0">

<action>osdwinsettings.exe /config</action>

<defaultVarList>

<variable name="OSDLocalAdminPassword" property="AdminPassword">

</variable>

<variable name="OSDComputerName" property="ComputerName">%_SMSTSMachineName%</variable>

<variable name="OSDProductKey" property="ProductKey">

</variable>

<variable name="OSDRandomAdminPassword" property="RandomAdminPassword">false</variable>

<variable name="OSDRegisteredOrgName" property="RegisteredOrgName">Admin</variable>

<variable name="OSDRegisteredUserName" property="RegisteredUserName">Admin</variable>

<variable name="OSDServerLicenseConnectionLimit" property="ServerLicenseConnectionLimit">5</variable>

<variable name="OSDTimeZone" property="TimeZone">W. Europe Standard Time</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_ApplyNetworkSettingsAction" name="Apply Network Settings" description="Actions to configure network settings" runIn="WinPEandFullOS" successCodeList="0">

<action>osdnetsettings.exe configure</action>

<defaultVarList>

<variable name="OSDDomainName" property="DomainName">server2008.lab.local</variable>

<variable name="OSDJoinPassword" property="DomainPassword">

</variable>

<variable name="OSDJoinAccount" property="DomainUsername">server2008\domjoin</variable>

<variable name="OSDEnableTCPIPFiltering" property="EnableTCPIPFiltering" hidden="true">false</variable>

<variable name="OSDNetworkJoinType" property="NetworkJoinType">0</variable>

<variable name="OSDAdapterCount" property="NumAdapters" hidden="true">0</variable>

</defaultVarList>

</step>

</group>

<group name="Setup Operating System" description="Setup Operating System">

<step type="SMS_TaskSequence_SetupWindowsAndSMSAction" name="Setup windows and ConfigMgr" description="Actions to setup windows and ConfigMgr client" runIn="WinPEandFullOS" successCodeList="0">

<action>OSDSetupWindows.exe</action>

<defaultVarList>

<variable name="SMSClientInstallProperties" property="ClientInstallProperties">

</variable>

<variable name="_SMSClientPackageID" property="ClientPackageID">ABC0000B</variable>

</defaultVarList>

</step>

<group name="Restore User Files and Settings" description="Restore User Files and Settings" continueOnError="true">

<step type="SMS_TaskSequence_RestoreUserStateAction" name="Restore User Files and Settings" description="" continueOnError="true" runIn="FullOS" successCodeList="0">

<action>osdmigrateuserstate.exe /apply /continueOnError:%OSDMigrateContinueOnRestore%</action>

<defaultVarList>

<variable name="OSDMigrateConfigFiles" property="ConfigFiles">Migapps.xml,Migdocs.xml,Migusers.xml</variable>

<variable name="OSDMigrateContinueOnRestore" property="ContinueOnRestore">true</variable>

<variable name="OSDMigrateEnableVerboseLogging" property="EnableVerboseLogging">true</variable>

<variable name="OSDMigrateLocalAccountPassword" property="LocalAccountPassword">

</variable>

<variable name="OSDMigrateLocalAccounts" property="LocalAccounts">true</variable>

<variable name="OSDMigrateMode" property="Mode">Advanced</variable>

<variable name="_OSDMigrateUsmtRestorePackageID" property="UsmtRestorePackageID">ABC00012</variable>

</defaultVarList>

</step>

</group>

</group>

</sequence>

</SequenceData>

<SourceDate>2012-05-02T11:20:45</SourceDate>

<SupportedOperatingSystems />

<IconSize>0</IconSize>

</SmsTaskSequencePackage>

Share this post


Link to post
Share on other sites

  • 0

Hi Guys,

 

My head does not work any more... I have some of the models working and some models does not work for userstate migration: Attached please find the XML for USMT. I am getting the statestore folder on the upgraded winxp computer however printers are not hooked. data is not copied to Mydocument and favourites.

 <group name="State Capture" description="">
          <condition>
            <expression type="SMS_TaskSequence_VariableConditionExpression">
              <variable name="Operator">equals</variable>
              <variable name="Value">false</variable>
              <variable name="Variable">_SMSTSinWinPE</variable>
            </expression>
          </condition>
          <step type="SMS_TaskSequence_SetVariableAction" name="Set OSDMigrateMode" description="" continueOnError="true" runIn="WinPEandFullOS" successCodeList="0">
            <action>tsenv.exe "OSDMigrateMode=Advanced"</action>
            <defaultVarList>
              <variable name="VariableName" property="VariableName" hidden="true">OSDMigrateMode</variable>
              <variable name="VariableValue" property="VariableValue" hidden="true">Advanced</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_SetVariableAction" name="Set OSDMigrateConfigFiles" description="" continueOnError="true" runIn="WinPEandFullOS" successCodeList="0">
            <action>tsenv.exe "OSDMigrateConfigFiles=MigUser.xml,MigApp.xml,MigLoblaw.xml"</action>
            <defaultVarList>
              <variable name="VariableName" property="VariableName" hidden="true">OSDMigrateConfigFiles</variable>
              <variable name="VariableValue" property="VariableValue" hidden="true">MigUser.xml,MigApp.xml,MigLoblaw.xml</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_SetVariableAction" name="Set OSDMigrateAdditionalCaptureOptions" description="" continueOnError="true" runIn="WinPEandFullOS" successCodeList="0">
            <action>tsenv.exe "OSDMigrateAdditionalCaptureOptions="</action>
            <defaultVarList>
              <variable name="VariableName" property="VariableName" hidden="true">OSDMigrateAdditionalCaptureOptions</variable>
              <variable name="VariableValue" property="VariableValue" hidden="true">
              </variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="USMT ZTI" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">Yes</variable>
                <variable name="Variable">SkipWizard</variable>
              </expression>
            </condition>
            <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIUserState.wsf /definition:UDIWizard_Config.xml"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%DeployRoot%\Scripts\ZTIUserState.wsf /definition:UDIWizard_Config.xml"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="UDI Wizard" description="" disable="true" runIn="WinPEandFullOS" successCodeList="0 3010">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">NO</variable>
                <variable name="Variable">SkipWizard</variable>
              </expression>
            </condition>
            <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\UDIWizard.wsf"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%DeployRoot%\Scripts\UDIWizard.wsf"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Copy SMS Logs" description="" continueOnError="true" runIn="WinPEandFullOS" successCodeList="0 3010">
            <condition>
              <operator type="and">
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">exists</variable>
                  <variable name="Value">
                  </variable>
                  <variable name="Variable">OSDStateStorePath</variable>
                </expression>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">equals</variable>
                  <variable name="Value">NO</variable>
                  <variable name="Variable">SkipWizard</variable>
                </expression>
              </operator>
            </condition>
            <action>smsswd.exe /run: cmd /c xcopy /E /C /I /Y %_SMSTSLogPath%\*.* %OSDStateStorePath%\SCCMLogs</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cmd /c xcopy /E /C /I /Y %_SMSTSLogPath%\*.* %OSDStateStorePath%\SCCMLogs</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Set Status 1" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\ztisetbackground.wsf" /image:1</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztisetbackground.wsf" /image:1</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_CaptureNetworkSettingsAction" name="Capture Network Settings" description="" runIn="FullOS" successCodeList="0">
            <action>osdnetsettings.exe capture netmembership:%OSDMigrateNetworkMembership% adapters:%OSDMigrateAdapterSettings%</action>
            <defaultVarList>
              <variable name="OSDMigrateAdapterSettings" property="MigrateAdapterSettings">true</variable>
              <variable name="OSDMigrateNetworkMembership" property="MigrateNetworkMembership">true</variable>
            </defaultVarList>
          </step>
          <group name="Online USMT" description="">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">notEquals</variable>
                <variable name="Value">TRUE</variable>
                <variable name="Variable">USMTOfflineMigration</variable>
              </expression>
            </condition>
            <step type="SMS_TaskSequence_RunCommandLineAction" name="Determine Local or Remote UserState" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
              <action>smsswd.exe /run:LCL002A3 cscript.exe "%deployroot%\scripts\ztiuserstate.wsf" /capture /estimate</action>
              <defaultVarList>
                <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztiuserstate.wsf" /capture /estimate</variable>
                <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
                <variable name="PackageID" property="PackageID" hidden="true">LCL002A3</variable>
                <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
                <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_RequestStateStoreAction" name="Request State Store" description="" runIn="FullOS" successCodeList="0">
              <condition>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">notEquals</variable>
                  <variable name="Value">True</variable>
                  <variable name="Variable">USMTLOCAL</variable>
                </expression>
              </condition>
              <action>osdsmpclient.exe /capture</action>
              <defaultVarList>
                <variable name="OSDStateFallbackToNAA" property="FallbackToNAA">true</variable>
                <variable name="OSDStateRequestType" property="RequestType" hidden="true">capture</variable>
                <variable name="OSDStateSMPRetryCount" property="SMPRetryCount" hidden="true">3</variable>
                <variable name="OSDStateSMPRetryTime" property="SMPRetryTime" hidden="true">10</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_CaptureUserStateAction" name="Capture User State" description="" runIn="FullOS" successCodeList="0">
              <action>osdmigrateuserstate.exe /collect /continueOnError:%OSDMigrateContinueOnLockedFiles% /skipefs:%OSDMigrateSkipEncryptedFiles%</action>
              <defaultVarList>
                <variable name="OSDMigrateContinueOnLockedFiles" property="ContinueOnLockedFiles">true</variable>
                <variable name="OSDMigrateEnableVerboseLogging" property="EnableVerboseLogging">false</variable>
                <variable name="OSDMigrateMode" property="Mode">Simple</variable>
                <variable name="OSDMigrateSkipEncryptedFiles" property="SkipEncryptedFiles">false</variable>
                <variable name="_OSDMigrateUsmtPackageID" property="UsmtPackageID">LCL002A3</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_ReleaseStateStoreAction" name="Release State Store" description="" continueOnError="true" runIn="FullOS" successCodeList="0">
              <condition>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">notEquals</variable>
                  <variable name="Value">True</variable>
                  <variable name="Variable">USMTLOCAL</variable>
                </expression>
              </condition>
              <action>osdsmpclient.exe /release</action>
              <defaultVarList />
            </step>
          </group>
        </group>
        <group name="Preinstall" description="">
          <group name="New Computer Only" description="">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">equals</variable>
                <variable name="Value">True</variable>
                <variable name="Variable">_SMSTSinWInPE</variable>
              </expression>
            </condition>
            <step type="BDD_Validate" name="Validate" description="" runIn="WinPEandFullOS" successCodeList="0">
              <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIValidate.wsf"</action>
              <defaultVarList>
                <variable name="ImageMemory" property="ImageMemory">768</variable>
                <variable name="ImageProcessorSpeed" property="ImageProcessorSpeed">800</variable>
                <variable name="ImageSize" property="ImageSize">0</variable>
                <variable name="VerifyOS" property="VerifyOS">CLIENT</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_RunCommandLineAction" name="USMT ZTI" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
              <condition>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">equals</variable>
                  <variable name="Value">Yes</variable>
                  <variable name="Variable">SkipWizard</variable>
                </expression>
              </condition>
              <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\ZTIUserState.wsf /definition:UDIWizard_Config.xml"</action>
              <defaultVarList>
                <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%DeployRoot%\Scripts\ZTIUserState.wsf /definition:UDIWizard_Config.xml"</variable>
                <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
                <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
                <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
                <variable name="WorkingDirectory" property="WorkingDirectory">%TOOLROOT%</variable>
              </defaultVarList>
            </step>
            <step type="SMS_TaskSequence_RunCommandLineAction" name="UDI Wizard" description="" disable="true" runIn="WinPEandFullOS" successCodeList="0 3010">
              <condition>
                <expression type="SMS_TaskSequence_VariableConditionExpression">
                  <variable name="Operator">equals</variable>
                  <variable name="Value">NO</variable>
                  <variable name="Variable">SkipWizard</variable>
                </expression>
              </condition>
              <action>smsswd.exe /run: cscript.exe "%DeployRoot%\Scripts\UDIWizard.wsf"</action>
              <defaultVarList>
                <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%DeployRoot%\Scripts\UDIWizard.wsf"</variable>
                <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
                <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
                <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
                <variable name="SMSTSRunCommandLineUserName" property="UserName">
                </variable>

Regards,

Share this post


Link to post
Share on other sites

  • 0

Hi Guys,

 

Here is the Restore User State:

 

 

  <step type="SMS_TaskSequence_RestoreUserStateAction" name="Restore User State" description="" runIn="FullOS" successCodeList="0">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">exists</variable>
                <variable name="Value">
                </variable>
                <variable name="Variable">OSDStateStorePath</variable>
              </expression>
              <operator type="or">
                <expression type="SMS_TaskSequence_FolderConditionExpression">
                  <variable name="Path">%OSDStateStorePath%\USMT</variable>
                </expression>
                <expression type="SMS_TaskSequence_FolderConditionExpression">
                  <variable name="Path">%OSDStateStorePath%\USMT3</variable>
                </expression>
              </operator>
            </condition>
            <action>osdmigrateuserstate.exe /apply /continueOnError:%OSDMigrateContinueOnRestore%</action>
            <defaultVarList>
              <variable name="OSDMigrateContinueOnRestore" property="ContinueOnRestore">true</variable>
              <variable name="OSDMigrateEnableVerboseLogging" property="EnableVerboseLogging">false</variable>
              <variable name="OSDMigrateLocalAccounts" property="LocalAccounts">false</variable>
              <variable name="OSDMigrateMode" property="Mode">Simple</variable>
              <variable name="_OSDMigrateUsmtRestorePackageID" property="UsmtRestorePackageID">LCL002A3</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Copy SMS Logs" description="" continueOnError="true" runIn="WinPEandFullOS" successCodeList="0 3010">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">exists</variable>
                <variable name="Value">
                </variable>
                <variable name="Variable">OSDStateStorePath</variable>
              </expression>
            </condition>
            <action>smsswd.exe /run: cmd /c xcopy /E /C /I /Y %_SMSTSLogPath%\*.* %OSDStateStorePath%\SCCMLogs</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cmd /c xcopy /E /C /I /Y %_SMSTSLogPath%\*.* %OSDStateStorePath%\SCCMLogs</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="_SMSTSRunCommandLineAsUser" property="RunAsUser">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Move State Store" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\ztimovestatestore.wsf"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztimovestatestore.wsf"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Apply GPO Pack" description="" runIn="FullOS" successCodeList="0">
            <condition>
              <expression type="SMS_TaskSequence_VariableConditionExpression">
                <variable name="Operator">notEquals</variable>
                <variable name="Value">NO</variable>
                <variable name="Variable">APPLYGPOPACK</variable>
              </expression>
            </condition>
            <action>smsswd.exe /run: cscript.exe "%deployroot%\scripts\ztiapplygpopack.wsf"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%deployroot%\scripts\ztiapplygpopack.wsf"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0</variable>
            </defaultVarList>
          </step>
          <step type="SMS_TaskSequence_RunCommandLineAction" name="Copy Logs" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
            <action>smsswd.exe /run: cscript "%deployroot%\scripts\zticopylogs.wsf"</action>
            <defaultVarList>
              <variable name="CommandLine" property="CommandLine" hidden="true">cscript "%deployroot%\scripts\zticopylogs.wsf"</variable>
              <variable name="SMSTSDisableWow64Redirection" property="DisableWow64Redirection">false</variable>
              <variable name="SuccessCodes" property="SuccessCodes" hidden="true">0 3010</variable>
            </defaultVarList>
          </step> 
 

Regards,

Share this post


Link to post
Share on other sites

  • 0

the task sequences for Configuration Manager 2012 are in a different format than for Cm2007, which are you using ?

Hi. I have SCCM 2012 (no SP1) and am trying to import these XMLs too with the same issue. It is looking for a .zip file.

Would it be possible to get them in the required .zip file format?

I was looking to experiment with both the Hardlinking and SMP methods.

Thanks for all you do, your postings have helped me alot!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.