Set WIM index name through MDT
-
Tuesday, January 22, 2013 3:21 AM
Hi guys,
I'm just trying to understand where MDT sets the image name in the WIM files it creates during capture?
I'm not talking about the WIM file name, but the actual 'NAME' flax in the index (I've highlighted below).
I've done many many captures with different deployment shares etc and I cant seem to see where it is getting this value from. Basically I want to have a set name as I am automating my deployment with some Powerscripts and I want to make it a bit more stable.
Z:\Captures>imagex /info WIN7-23-1-2013.wim
ImageX Tool for Windows
Copyright (C) Microsoft Corp. All rights reserved.
Version: 6.1.7600.16385
WIM Information:
----------------
Path: Z:\Captures\WIN7-23-1-2013.wim
GUID: {bfd2ac12-dda0-4a7e-b954-ebc9ac9bfbf2}
Image Count: 1
Compression: LZX
Part Number: 1/1
Attributes: 0x8
Relative path junction
Available Image Choices:
------------------------
<WIM>
<TOTALBYTES>3908684181</TOTALBYTES>
<IMAGE INDEX="1">
<DIRCOUNT>15182</DIRCOUNT>
<FILECOUNT>72960</FILECOUNT>
<TOTALBYTES>14885504791</TOTALBYTES>
<HARDLINKBYTES>4984378407</HARDLINKBYTES>
<CREATIONTIME>
<HIGHPART>0x01CDF995</HIGHPART>
<LOWPART>0x6DA27D4B</LOWPART>
</CREATIONTIME>
<LASTMODIFICATIONTIME>
<HIGHPART>0x01CDF995</HIGHPART>
<LOWPART>0x72D4D9BB</LOWPART>
</LASTMODIFICATIONTIME>
<WINDOWS>
<ARCH>9</ARCH>
<PRODUCTNAME>Microsoft® Windows® Operating System</PRODUCTNAME>
<EDITIONID>Professional</EDITIONID>
<INSTALLATIONTYPE>Client</INSTALLATIONTYPE>
<HAL>acpiapic</HAL>
<PRODUCTTYPE>WinNT</PRODUCTTYPE>
<PRODUCTSUITE>Terminal Server</PRODUCTSUITE>
<LANGUAGES>
<LANGUAGE>en-US</LANGUAGE>
<DEFAULT>en-US</DEFAULT>
</LANGUAGES>
<VERSION>
<MAJOR>6</MAJOR>
<MINOR>1</MINOR>
<BUILD>7601</BUILD>
<SPBUILD>17965</SPBUILD>
<SPLEVEL>1</SPLEVEL>
</VERSION>
<SYSTEMROOT>WINDOWS</SYSTEMROOT>
</WINDOWS>
<NAME>WIN7DDrive</NAME>
<FLAGS>Professional</FLAGS>
</IMAGE>
</WIM>
All Replies
-
Wednesday, January 23, 2013 11:19 PM
OK so I found the point where it sets the index name.
For anyone else looking to find it or modify it check the ZTIBackup.wsf around line 427:
' Build the command If oFSO.FileExists(sBackupPath) then sCmd = " /append " & oDrive.Path & " """ & sBackupPath & """ """ & sPrefix & Left(oDrive.Path, 1) & "Drive""" Else sCmd = " /capture /compress maximum " & oDrive.Path & " """ & sBackupPath & """ """ & sPrefix & Left(oDrive.Path, 1) & "Drive""" End if
The part that contains the sPrefix part.
- Edited by mhouston100 Wednesday, January 23, 2013 11:19 PM
- Marked As Answer by mhouston100 Thursday, January 24, 2013 12:05 AM

