Jump to content


  • 0
birz

ZTIBackup

Question

Hi,

 

I'm in the process of doing a "refresh TS" to migrate "Windows XP x86" to "Windows 7 x64" and there's a thing that I can't seem to get to work here it is:

 

I want to for the "backup" to go on a network share instead of the wim file file being saved in "C:\_SMSTaskSequence\StateStore". I've tried setting up the following variable in both the customsettings.ini and directly in the TS as "set task sequence variable", either solutions didn't work out..

 

computerBackuplocation=Network

backupdir=%computername%

backupshare=\\somenetworkshare\xxx

 

here is what I find in the ZTIBackuplog:

 

Microsoft Deployment Toolkit version: 5.1.1642.01 ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log. ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Drive C: 32277992 ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Local store path = C:\_SMSTaskSequence\StateStore ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Total used space: 32277992 ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Available space at C:\_SMSTaskSequence\StateStore: 211918008 ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Backup can use local path ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)Property USMTLocal is now = True ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Using a local or mapped drive, no connection is required. ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

Beginning backup of drive C: ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

About to run command: cmd /c ""C:\_SMSTaskSequence\WDPackage\Tools\X64\imagex.exe" /capture /compress maximum C: "C:\_SMSTaskSequence\StateStore\MTL7CAC03000QD.wim" "201104081421CDrive" >> X:\windows\TEMP\SMSTSLog\ZTIBackup_imagex.log 2>&1" ztibackup 08/04/2011 2:21:48 PM 0 (0x0000)

ZTI Heartbeat: command has been running for 6 minutes (process ID 1576) ztibackup 08/04/2011 2:27:00 PM 0 (0x0000)

ZTI Heartbeat: command has been running for 12 minutes (process ID 1576) ztibackup 08/04/2011 2:33:00 PM 0 (0x0000)

ZTI Heartbeat: command has been running for 18 minutes (process ID 1576) ztibackup 08/04/2011 2:39:00 PM 0 (0x0000)

Return code from command = 0 ztibackup 08/04/2011 2:44:22 PM 0 (0x0000)

Successfully created image of drive C: ztibackup 08/04/2011 2:44:22 PM 0 (0x0000)

Skipping drive X: because it's not C: ztibackup 08/04/2011 2:44:22 PM 0 (0x0000)

ztibackup COMPLETED. Return Value = 0 ztibackup 08/04/2011 2:44:22 PM 0 (0x0000)

Property BackupScriptComplete is now = YES ztibackup 08/04/2011 2:44:22 PM 0 (0x0000)

ztibackup processing completed successfully. ztibackup 08/04/2011 2:44:22 PM 0 (0x0000)

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

it wont work unless you create a connection to the share using a separate step first, connect to network folder,

if you want an example of a task sequence with the right steps (and a WHOLE lot more) then checkout this post

Share this post


Link to post
Share on other sites

  • 0

you should use the MDT integration and then import the following Task Sequence. Make sure you change the backup location. And the variable "BackupFile"...by leaving it blank, it will use the computer name as the file name...(ex computername.wim)

 

<?xml version="1.0"?>

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

<BootImageID>ZZ0001C9</BootImageID>

<Category />

<DependentProgram />

<Description />

<Duration>360</Duration>

<Name>XP Image Capture</Name>

<ProgramFlags>152084496</ProgramFlags>

<SequenceData>

<sequence version="3.00">

<referenceList>

<reference package="ZZ000194" />

</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:ZZ000194 cscript.exe Scripts\ZTISCCM.wsf</action>

<defaultVarList>

<variable name="BDDPackageID" property="PackageID" hidden="true">ZZ000194</variable>

</defaultVarList>

</step>

<step type="SMS_TaskSequence_SetVariableAction" name="Set Backup Location Variable" description="" runIn="WinPEandFullOS" successCodeList="0">

<action>tsenv.exe "ComputerBackupLocation=\\server01\xpbackupimages"</action>

<defaultVarList>

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

<variable name="VariableValue" property="VariableValue" hidden="true">\\server01\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

  • 0

OK thanks for the answers, although I dn't really understande the purpose of the "local" backup,,, when Windows 7 is being installed, the backup is gone as well. Maybe it is hidden, but it is definately not in the statestore folder after the refresh is done. What I see is that the backup is gone in the process, so I think it's a waste of time. Correct me if I'm wrong though.

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.