You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Search in All Title Contents

Adding date to the captured WIM File in MDT

Feb 27 2014

When using the build and capture task sequence in MDT Lite Touch it make perfect sense to add date information to the WIM file name created. Since CustomSettings.ini understands inline VBScript you can simply set the following:

Update May 30, 2018: Formatted the code to use two digits in month and day.

BackupFile=%TaskSequenceID%_#year(date) & "-" & Right(String(2, "0") & Month(date), 2) & "-" & Right(String(2, "0") & Day(date), 2)#.wim

Note: Make sure you don’t have “ (curly quotes) in the .ini file but instead use " (straight quotes)


Below is the output from simulating (in PowerShell) a sample CustomSettings.ini file.

Priority=Init, Default


BackupFile=%TaskSequenceID%_#year(date) & "-" & Right(String(2, "0") & Month(date), 2) & "-" & Right(String(2, "0") & Day(date), 2)#.wim

The WIM file name in the ZTIGather.log file.

Deployment News

Happy deployment, and thanks for reading!

What our lawyers makes us say:

This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don't pass off our work as yours, it's not nice.

Blog Archive


Where you can meet us!

Live Stream Recordings
ConfigMgr 1806 and W10 OSD

5 Days - Mega Geek Week 
(multiple classes, ConfigMgr, OSD etc.)
- Johan Arwidmark, Mikael Nystrom...
Jun 10, 2019, Chicago, IL, US

4 Days - Windows 10 OSD Classes
- Johan Arwidmark
May 20, 2019, San Diego, CA, US
Jun 17, 2019, Culemborg, NL
Jul 8, 2019, Phoenix, AZ, US

5 days - ConfigMgr Classes
- Johan Arwidmark and Kent Agerlund
Apr 8, 2019, Chicago, IL, US
Apr 22, 2019, Houston, TX, US

Video-based trainings

MDT, Windows 10 and ConfigMgr Books

Contact Info