I wrote a simple batch file to map a drive and invoke Autopatcher with an answer file. I used a converter to turn the batch file into an EXE and then added it as an application to be "installed" during the deployment. I set a dependency up so that it runs towards the end of the deployment. The commands I used:
net use w: [url="file://\\server\share$"]\\server\share$[/url] w:\AutoPatcher\Windows7x86Updates\autopatcher.exe /noreboot /unattend /answerfile:w:\AutoPatcher\Windows7x86Updates\win7x86.aaf net use w: /delete /yes
I'm actually in an environment with a WSUS server but patches are only pushed out over night and I found myself needing an easy way to deploy an OS to a machine and get it fully patched immediately. So Autopatcher did the trick.
One tip... Don't use z:\ to map the drive to the Autopatcher share because z:\ will already be mapped to the deployment share by MDT.











