Michael Niehaus' Windows and Office deployment ramblings
In BDD 2007, we provide a task sequence that is preconfigured to do all of the activities needed to perform a deployment end-to-end (for Lite Touch, Zero Touch, refresh, upgrade, new computer, Windows XP, Windows Vista, etc.). However, that doesn't mean that it does everything you need. Depending on your particular requirements, you may need to add your own custom steps to the task sequence. That's one of the benefits of having the task sequencer and task sequence editor available: you can make whatever adjustments you require.
Now, that doesn't mean that making those adjustments is always a simple process. For example, let's assume you want to add batch files or simple Command Shell commands into the task sequence. Some things to keep in mind to help assure that these run successfully:
What if you want to test out a new task sequence action without running an entire deployment to do it? Well, you can create your own stand-alone task sequencer XML file, then tell it to run that. (Note that the typical environment variables, e.g. DEPLOYROOT or SCRIPTROOT, won't be defined in this case.) Here's the process that you need for that:
Any other suggestions? If so, please submit comments below and I'll continue to integrate them into this posting.
Very helpful - thanks for the post!
-tfurst
Michael! Thanks for the steps above! Very helpful!!
Interestingly, the process fails if the TS.XML file is saved as UTF-8 (e.g. from Notepad)... must be saved as ANSI. TS gives an error (illegal character on line 1, char 1) if it is saved as UTF-8. Works if ANSI. If you find out anything about this, please email me at danh at intelliem dot com.
True, the task sequencer does expect to find an ANSI TS.XML file, so don't save it as UTF-8 or UTF-16.
-Michael
Thanks...this helped me with some issues i had with Task Sequencing...
Is there a way to test an application installation without running an entire deployment?
I'm still having issues with batch files in the TS. For some reason my batch file will run when selected through the BDD wizard, but when it is a part of the TS it always fails. It also continues to work when I add it as a dependency to another application being run in the TS.
Hi Michael,
We are seeing some very wierd behavior in the lab in regards to applications getting installed and sysprep.
Syprep seems to be hanging until we move the mouse...and then continues to seal the OS. Samething with one of our apps...Presentation Director 2.57 and 2.55 from Lenovo.
I spoke with our Microsoft Rep....and this seems to be a problem that is getting reported from his clients as well.
Thanks
-James
Can you please reword this. I cannot get the custom task sequences to work.
-----------------------------------------------Don’t specify a working directory of “.\anything” (e.g. “.\Applications”) in the task sequence because the current working directory is not guaranteed. (Notice that when you add an application from Workbench, which does use this “.\” notation, it translates “.\” into “%DEPLOYROOT%\”. This is done at deploy time by the ZTIApplications.wsf script.)
-----------------------------------------------
<![LOG[Expand a string: %DEPLOYROOT%\Applications\Tools_TEST]LOG]!><time="21:52:13.843+480" date="11-21-2007" component="TSManager" context="" type="0" thread="2124" file="executionenv.cxx:849">
<![LOG[Start executing the command line: DeployTools_v11.CMD]LOG]!><time="21:52:13.843+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="instruction.cxx:2815">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="21:52:13.843+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="instruction.cxx:2844">
<![LOG[Executing command line: "DeployTools_v11.CMD"]LOG]!><time="21:52:13.843+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="commandline.cpp:763">
<![LOG[Process completed with exit code 1]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="commandline.cpp:1013">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="instruction.cxx:2894">
<![LOG[Failed to run the action: Tools_TEST.
Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="3" thread="2124" file="instruction.cxx:2984">
<![LOG[Sending status message . . .]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="utility.cxx:296">
<![LOG[Executing in non SMS standalone mode. Ignoring send a task execution status message request]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="1" thread="2124" file="utility.cxx:305">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=1]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="0" thread="2124" file="executionenv.cxx:735">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="0" thread="2124" file="executionenv.cxx:735">
<![LOG[Clear local default environment]LOG]!><time="21:52:14.484+480" date="11-21-2007" component="TSManager" context="" type="0" thread="2124" file="executionenv.cxx:874">
<![LOG[Let the parent group (CoreApplications) decides whether to continue execution]LOG]!><time="21:52:14.593+480" date="11-21-2007" component="TSManager" context="" type="0" thread="2124" file="instruction.cxx:3093">
<![LOG[Let the parent group (State Restore) decide whether to continue execution]LOG]!><time="21:52:14.593+480" date="11-21-2007" component="TSManager" context="" type="0" thread="2124" file="instruction.cxx:2353">
<![LOG[The execution of the group (State Restore) failed and the execution is aborted. An action fails.
Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="21:52:14.609+480" date="11-21-2007" component="TSManager" context="" type="3" thread="2124" file="instruction.cxx:2316">
<![LOG[Failed to run the last action: Tools_TEST. Execution of task sequence failed.
Incorrect function. (Error: 00000001; Source: Windows)]LOG]!><time="21:52:14.609+480" date="11-21-2007" component="TSManager" context="" type="3" thread="2124" file="engine.cxx:199">