I am trying to use UpdateExit.vbs to run a command against the mounted litetouch WIM when it is being created/updated in MDT 2012. I had this working in MDT 2010.
I added the command to the If oEnv("STAGE") = "WIM" section of the UpdateExit.vbs and I added a WScript.Quit 1 to the end so that the output would be listed in the MDT console. The issue I am having is that it appears that STAGE is never set to WIM
so that section is never processed and my command is never run.
I see stages called POSTWIM, ISO and POSTISO, but not one called WIM.
Here is the output from my console:
=== Making sure the deployment share has the latest x86 tools ===
=== Processing LiteTouchPE (x86) boot image ===
Building requested boot image profile.
Determining if any changes have been made in the boot image configuration.
No existing boot image profile found for platform x86 so a new image will be created.
Calculating hashes for requested content.
Changes have been made, boot image will be updated.
Windows PE WIM D:\Program Files\Windows AIK\Tools\PETools\x86\winpe.wim will be used.
WIM file mounted.
Set Windows PE system root.
Set Windows PE scratch space.
Added component winpe-hta
Added component winpe-scripting
Added component winpe-wmi
Added component winpe-securestartup
Added component winpe-mdac
Added component dart
<the part where it injects drivers>
<the part where it copies files>
Copying WIM to the deployment share.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
INSTALLDIR = C:\Program Files\Microsoft Deployment Toolkit
DEPLOYROOT = D:\DeploymentPoints\Workstation
PLATFORM = x86
ARCHITECTURE = x86
TEMPLATE = LiteTouchPE
STAGE = POSTWIM
CONTENT = C:\DOCUME~1\user\LOCALS~1\Temp\1\MDTUpdate.4860\LiteTouchPE_x86.wim
Exit code = 1
Creating an ISO.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
INSTALLDIR = C:\Program Files\Microsoft Deployment Toolkit
DEPLOYROOT = D:\DeploymentPoints\Workstation
PLATFORM = x86
ARCHITECTURE = x86
TEMPLATE = LiteTouchPE
STAGE = ISO
CONTENT = C:\DOCUME~1\user\LOCALS~1\Temp\1\MDTUpdate.4860\ISO
Exit code = 1
Copying ISO to the deployment share.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
INSTALLDIR = C:\Program Files\Microsoft Deployment Toolkit
DEPLOYROOT = D:\DeploymentPoints\Workstation
PLATFORM = x86
ARCHITECTURE = x86
TEMPLATE = LiteTouchPE
STAGE = POSTISO
CONTENT = C:\DOCUME~1\user\LOCALS~1\Temp\1\MDTUpdate.4860\LiteTouchPE_x86.iso
Exit code = 1
=== Completed processing platform x86 ===
=== Making sure the deployment share has the latest x64 tools ===
=== Processing LiteTouchPE (x64) boot image ===
Building requested boot image profile.
Determining if any changes have been made in the boot image configuration.
No existing boot image profile found for platform x64 so a new image will be created.
Calculating hashes for requested content.
Changes have been made, boot image will be updated.
Windows PE WIM D:\Program Files\Windows AIK\Tools\PETools\amd64\winpe.wim will be used.
WIM file mounted.
Set Windows PE system root.
Set Windows PE scratch space.
Added component winpe-hta
Added component winpe-scripting
Added component winpe-wmi
Added component winpe-securestartup
Added component winpe-mdac
Added component dart
<the part where it injects drivers>
<the part where it copies files>
Copying WIM to the deployment share.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
INSTALLDIR = C:\Program Files\Microsoft Deployment Toolkit
DEPLOYROOT = D:\DeploymentPoints\Workstation
PLATFORM = x64
ARCHITECTURE = amd64
TEMPLATE = LiteTouchPE
STAGE = POSTWIM
CONTENT = C:\DOCUME~1\user\LOCALS~1\Temp\1\MDTUpdate.4860\LiteTouchPE_x64.wim
Exit code = 1
Creating an ISO.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
INSTALLDIR = C:\Program Files\Microsoft Deployment Toolkit
DEPLOYROOT = D:\DeploymentPoints\Workstation
PLATFORM = x64
ARCHITECTURE = amd64
TEMPLATE = LiteTouchPE
STAGE = ISO
CONTENT = C:\DOCUME~1\user\LOCALS~1\Temp\1\MDTUpdate.4860\ISO
Exit code = 1
Copying ISO to the deployment share.
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
INSTALLDIR = C:\Program Files\Microsoft Deployment Toolkit
DEPLOYROOT = D:\DeploymentPoints\Workstation
PLATFORM = x64
ARCHITECTURE = amd64
TEMPLATE = LiteTouchPE
STAGE = POSTISO
CONTENT = C:\DOCUME~1\user\LOCALS~1\Temp\1\MDTUpdate.4860\LiteTouchPE_x64.iso
Exit code = 1
=== Completed processing platform x64 ===
=== Processing complete ===