Excluding files when an image is captured using MDT 2010
When MDT captures an image of a reference computer, it uses the ImageX command-line utility under the hood to do this. When capturing an image, ImageX excludes any files listed in the WimScript.ini file. To exclude files from being captured, the WimScript.ini file should be located in the same directory as the ImageX utility since ImageX will automatically detect the WimScript.ini file only if it is saved to the same location as ImageX itself.
MDT includes a default WimScript.ini file found in DeploymentShare$\tools\x86\WimScript.ini which excludes the following files from being captured:
- "System Volume Information"
The WimScript.ini file also excludes a number of folders such as \sources, \Windows\CSC, \Windows.old, \Windows\Panther and \MININT from being captured. You can edit the default WimScript.ini file to exclude additional files and folders if desired.
Because capturing an image of a computer using ImageX can fail if certain files are locked, it's a good idea to use WimScript.ini to exclude such files from the capture process.
Mitch Tulloch is a seven-time recipient of the Microsoft Most Valuable Professional (MVP) award and widely recognized expert on Windows administration, deployment and virtualization. For more tips by Mitch you can follow him on Twitter or friend him on Facebook.