Jump to content


colfaxit

MDT SCCM capture only task sequence ztibackup.wsf error

Recommended Posts

Hi All,

I'm trying to do an image capture without first sysprep'ing the device. (Basically how I used ghost when I wanted to get a backup of a machine)

 

My task sequence is basically this

restart in win pe

use toolkit package (the mdt toolkit)

set variable ComputerBackupLocation

capture image (%scriptroot%\ztibackup.wsf

 

Everytime I an error on my capture image step that says 0x00000001. SMSTS.log says failed "incorrect function"

 

I opened up the share with no change, i added my domain admin account on the capture image step and the error goes to 0x80004005 (i'll have to double check on that code)

 

My MDT package was created by importing a mdt task sequence into SCCM and that appears to be working properly. I have no errors in my bdd.log

 

Any ideas?

Share this post


Link to post
Share on other sites

hi, can you post the smsts.log file please ? the incorrect function error could be due to trying to execute the script while in windows instead of doing it in winpe...

Share this post


Link to post
Share on other sites

here's a working task sequence that does what you need:

 

<?xml version="1.0"?>
<SmsTaskSequencePackage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <BootImageID>HQ0001C9</BootImageID>
 <Category />
 <DependentProgram />
 <Description />
 <Duration>360</Duration>
 <Name>XP Image Capture</Name>
 <ProgramFlags>152084496</ProgramFlags>
 <SequenceData>
   <sequence version="3.00">
     <referenceList>
       <reference package="HQ000194" />
     </referenceList>
     <step type="SMS_TaskSequence_RebootAction" name="Restart Computer" description="" runIn="WinPEandFullOS" successCodeList="0">
       <action>smsboot.exe /target:WinPE</action>
       <defaultVarList>
         <variable name="SMSRebootMessage" property="Message">
         </variable>
         <variable name="SMSRebootTimeout" property="MessageTimeout">1</variable>
         <variable name="SMSRebootTarget" property="Target" hidden="true">WinPE</variable>
       </defaultVarList>
     </step>
     <step type="BDD_UsePackage" name="Use Toolkit Package" description="" runIn="WinPEandFullOS" successCodeList="0">
       <action>smsswd.exe /run:HQ000194 cscript.exe Scripts\ZTISCCM.wsf</action>
       <defaultVarList>
         <variable name="BDDPackageID" property="PackageID" hidden="true">HQ000194</variable>
       </defaultVarList>
     </step>
     <step type="SMS_TaskSequence_SetVariableAction" name="Set Backup Location Variable" description="" runIn="WinPEandFullOS" successCodeList="0">
       <action>tsenv.exe "ComputerBackupLocation=\\u264\xpbackupimages"</action>
       <defaultVarList>
         <variable name="VariableName" property="VariableName" hidden="true">ComputerBackupLocation</variable>
         <variable name="VariableValue" property="VariableValue" hidden="true">\\u264\xpbackupimages</variable>
       </defaultVarList>
     </step>
     <step type="SMS_TaskSequence_SetVariableAction" name="Set WIM FileName Variable" description="" runIn="WinPEandFullOS" successCodeList="0">
       <action>tsenv.exe "BackupFile="</action>
       <defaultVarList>
         <variable name="VariableName" property="VariableName" hidden="true">BackupFile</variable>
         <variable name="VariableValue" property="VariableValue" hidden="true">
         </variable>
       </defaultVarList>
     </step>
     <step type="SMS_TaskSequence_RunCommandLineAction" name="Capture Image" description="" runIn="WinPEandFullOS" successCodeList="0 3010">
       <action>smsswd.exe /run: cscript.exe "%scriptroot%\ZTIBackup.wsf"</action>
       <defaultVarList>
         <variable name="CommandLine" property="CommandLine" hidden="true">cscript.exe "%scriptroot%\ZTIBackup.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="SMSTSRunCommandLineUserPassword" property="UserPassword">
         </variable>
       </defaultVarList>
     </step>
   </sequence>
 </SequenceData>
 <SourceDate>2011-03-10T16:24:07</SourceDate>
 <SupportedOperatingSystems />
 <IconSize>0</IconSize>
</SmsTaskSequencePackage>

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
Reply to this topic...

×   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...