When MDT 2010 is integrated with ConfigMgr 2007 and the ZTIBde.wsf script is attempted to be run in a ConfigMgr 2007 task Sequence via a "Run Command Line" task in an x64 Windows OS, the script will fail. Examining the logs reveals the following
errors:
SMSTS.log
About to run command: cmd /c DEFRAG.EXE c: >> C:\Windows\SysWOW64\CCM\Logs\SMSTSLog\ZTIdefrag.log 2>&1 InstallSoftware
Process completed with exit code 6726 InstallSoftware
Return code from command = 1 InstallSoftware
FAILURE ( 6726 ): 1: Execute cmd /c DEFRAG.EXE c: >> C:\Windows\SysWOW64\CCM\Logs\SMSTSLog\ZTIdefrag.log 2>&1 InstallSoftware
Command line returned 6726 InstallSoftware
Process completed with exit code 6726 TSManager
!--------------------------------------------------------------------------------------------! TSManager
Failed to run the action: Partition Disk for Bitlocker.
The kernel transaction manager had to abort or forget the transaction because it blocked forward progress. (Error: 00001A46; Source: Windows) TSManager
ZTIBde.log
About to run command: cmd /c DEFRAG.EXE c: >> C:\Windows\SysWOW64\CCM\Logs\SMSTSLog\ZTIdefrag.log 2>&1 ZTIBde
Return code from command = 1 ZTIBde
FAILURE ( 6726 ): 1: Execute cmd /c DEFRAG.EXE c: >> C:\Windows\SysWOW64\CCM\Logs\SMSTSLog\ZTIdefrag.log 2>&1 ZTIBde
ZTIDefrag.log
'DEFRAG.EXE' is not recognized as an internal or external command,
operable program or batch file.
This problem is caused by an error in the
ZTIBde.wsf script that causes it not to find Defrag.exe in x64 Windows OSes. Defrag.exe is used by the script to defragment the existing partition before shrinking it to create the partition needed by
BitLocker.
To resolve the problem, upgrade to MDT 2010 Update 1. The ZTIBde.wsf
script has been corrected in MDT 2010 Update 1. If an upgrade to MDT 2010 Update 1 is not possible, the
ZTIBde.wsf script in MDT 2010 can be corrected using the below steps:
- In the ConfigMgr 2007 Admin Console, navigate to the "Computer Management" --> "Software Distribution" --> "Packages" node.
- Under the "Packages" node, locate the the MDT 2010 Toolkit Package.
- Right click on the MDT 2010 Toolkit Package and choose "Properties".
- Click on the "Data Source" tab. Under "Source directory" determine the location of the MDT 2010 Toolkit Package source files.
- Click on the "OK" button to close the MDT 2010 Toolkit Package properties window.
- Navigate to the directory determined in Step 4 and open the "Scripts" folder.
- Make a back copy of the ZTIBde.wsf file.
- Right click on the original ZTIBde.wsf file and choose "Edit". This should open the
ZTIBde.wsf script in Notepad.exe.
- Find the following line in the ZTIBde.wsf script:
ElseIf oFSO.FileExists(oEnv("SystemRoot") & "\sysnative\ServerManagerCmd.exe") then
and change it to
ElseIf oFSO.FileExists(oEnv("SystemRoot") & "\sysnative\defrag.exe") then
- Save and close the file in Notepad. When saving the file, make sure that the .txt extension is not added onto the file. The files should maintain the original name of
ZTIBde.wsf.
- In the ConfigMgr 2007 Admin Console, update the Distribution Points that the MDT 2010 Toolkit Package are on.
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See
Terms of Use
(http://go.microsoft.com/fwlink/?LinkId=151500)
for other considerations.
Article ID: 2254610 - Last Review: November 22, 2010 - Revision: 4.0
APPLIES TO
- Microsoft System Center Configuration Manager 2007 R2
- Microsoft System Center Configuration Manager 2007 Service Pack 1
- Microsoft System Center Configuration Manager 2007 Service Pack 2
- Microsoft Deployment Toolkit 2010