Capturing Non-Sysprep Image With ZTIBackup.wsf
I would like to backup the user computer to a WIM before formating and installing Win 7. USMT is great and stuff but it's not going to catch the fringe items without a bunch of extra planning. I've added the MDT Toolkit package to ConfigMgr to access ZTIBackup.wsf. It appears a .WSF can't be executed? I could probobally just create a Run Command task to execute ImageX but the ZTIBackup is already built.!--------------------------------------------------------------------------------------------!]LOG]!><time="16:39:16.112+240" date="03-17-2010" component="TSManager" context="" type="1" thread="1800" file="instruction.cxx:2957"><![LOG[Expand a string: WinPEandFullOS]LOG]!><time="16:39:16.112+240" date="03-17-2010" component="TSManager" context="" type="0" thread="1800" file="executionenv.cxx:782"><![LOG[Executing command line: smsswd.exe /run: cscript.exe “%scriptroot%\ZTIBackup.wsf”]LOG]!><time="16:39:16.112+240" date="03-17-2010" component="TSManager" context="" type="1" thread="1800" file="commandline.cpp:805"><![LOG[=======================[ smsswd.exe ] =======================]LOG]!><time="16:39:16.112+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="main.cpp:303"><![LOG[PackageID = '']LOG]!><time="16:39:16.112+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="main.cpp:332"><![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="16:39:16.112+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="main.cpp:333"><![LOG[SwdAction = '0001']LOG]!><time="16:39:16.112+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="main.cpp:334"><![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="0" thread="2032" file="commandline.cpp:229"><![LOG[Set command line: Run command line]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="0" thread="2032" file="commandline.cpp:707"><![LOG[Working dir 'not set']LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="runcommandline.cpp:542"><![LOG[Executing command line: Run command line]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="commandline.cpp:805"><![LOG[Process completed with exit code 1]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="commandline.cpp:1102"><![LOG[Microsoft (R) Windows Script Host Version 5.8]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="runcommandline.cpp:34"><![LOG[Copyright (C) Microsoft Corporation. All rights reserved.]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="runcommandline.cpp:34"><![LOG[]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="runcommandline.cpp:34"><![LOG[Input Error: There is no script engine for file extension ".wsf"".]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="runcommandline.cpp:34"><![LOG[Command line returned 1]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="InstallSoftware" context="" type="1" thread="2032" file="runcommandline.cpp:565"><![LOG[Process completed with exit code 1]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="TSManager" context="" type="1" thread="1800" file="commandline.cpp:1102"><![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="16:39:16.128+240" date="03-17-2010" component="TSManager" context="" type="1" thread="1800" file="instruction.cxx:3010">~Mike
March 17th, 2010 11:21pm
Hi Mike,I am doing exactly what you are trying to do so hopefully I can be some help. Have you already gone through all the steps on this link:http://scug.dk/blogs/deployment/archive/2009/11/23/capture-none-syspreped-image-using-sccm-running-imagex-from-a-ts.aspx
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2010 12:15am
Hello,Yes. As a matter of fact I followed the steps in that link. I did notice that the %scriptroot% variable was missing the closing % in the article.
March 18th, 2010 12:23am
Yes that was a typo on their part so it needs to be their if it isn't already. Have you copied imagex.exe to you distribution$\tools\x86 and x64 folders?
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2010 12:33am
%scriptroot% is the path to the SCCM package generated with the MDT Toolkit Package creation wizard (launched a dummy MDT TS to get the wizard to run.) The files are there. In PE (F8) I can see the files in the package.
March 18th, 2010 12:40am
You still need to copy imagex.exe to that location they don't tell you this in the link. You get it from the Windows AIK on your site server under program files\Windows AIK\Tools\x86 and i64 or amd64 depending on what you use. Next under your the properties of your Task Sequence you want make sure you have Use a boot image checkbox checked and the appropriate boot image is selected.Next you want to add a Restart Computer task before the sequence in the link I sent early. Make sure "The boot image assigned to this task sequence" is selected. Under the options tab of this task add a condition that is a Task Sequence variable _SMSTSInWinPE equals false.
Free Windows Admin Tool Kit Click here and download it now
March 18th, 2010 12:59am
I checked the Distribution share and ImageX is already there. What does the _SMSTSINWINPE = False do?I think I'm going to simply add ImageX to a tools folder in the PE and execute X:\Tools\ImageX.exe. The ZTIBackup.wsf is overcomplicating things. Thanks for your assistance.I'm kind of surprised no MVP has any thoughts on this.Mike
March 18th, 2010 7:38pm
Nothing like a super late response, but I was in the same boat this morning trying to accomplish the same scenario: Backup a non-sysprepped machine much akin to a "Ghost" image. Here is what I did for my task sequence:
Pre-req: MDT integrated into SCCM (I am using 2010 U1), SCCM (I am using 2007 R2 SP2)
Restart computer: Boot image assigned, Options tab->Add condition->Will run if following conditions are met->Task Sequence Variable _SMSTSInWinPE equals "false" This just restarts the computer in WinPE if it is not already booted to WinPE.
MDT->Use Toolkit Package->Point to your MDT SCCM Package Add Task Sequence (TS) variable: ComputerBackupLocation Value: Point to your Image Capture share. Add TS Variable: BackupFile Value: putyourimagenamehere.wim Run Command Line: cscript %deployroot%\scripts\ZTIBackup.wsf
Hope this helps.
Dave
Free Windows Admin Tool Kit Click here and download it now
January 5th, 2011 6:56pm
ONe question:
When accessing the backuplocation through the specified variable under the step "Point to your image Capture share" from within the ZTIBackup.wsf share, which account will be used to make up the connection?
I think this should be specified as we are within the TS and cannot use the "Run this step as the following account"!
Therefore there are only three options to configure access rights (SMB/NTFS) on the network folder:
1. use the computer account
2. use the Network Access Account
3. Modify the ZTIBackup.wsf file to hand over "user+PW"Tarkan Koemuercue
July 2nd, 2011 5:26pm


