A quick tip to auto-generate wim names for capture.
I sometimes am generating a few images at the same time, but I wanted a standard name that I didnt have to type every time, and version control so I know when the image was captured.
I add this to the BackupFile variable:
It generates a name like w8x64_06-20-13_10-15.wim
using the vbscript Function FormatDateTme(Now, n) to return date and time variables where
Now is the current date and time and n =
FormatDateTime(Now,n) is wrapped in the Replace function. this replaces non valid characters "/" and ":" with "-"
Replace(string, char to replace, replacement char)
Wrapping it all in # # tells MDT that its a vbscript function and to evaluate it.
Then I add them all together with a prefix and a .wim extension.
Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.
Would you like to participate?