Hi, I had similar problems, the only way I could get this to work was to invoke it as a scheduled task running as System. I created a couple of scripts perform the update as part of the build :-
https://github.com/eltimmo/packerWindowsUpdate On Friday, 13 December 2013 19:05:31 UTC, Jason Reeves wrote: > > That wouldn't quite work with what I am trying to accomplish but I > appreciate the response. I am trying to build a 'factory' for versioned > templates to choose from. So the build needs to be fully automated and run > after patch Tuesday to create a new updated template. > I haven't had a chance to try out what Shawn suggested but I have a > feeling that it will work exactly as I need. > > On Wednesday, November 27, 2013 11:21:30 PM UTC-6, Mischa Taylor wrote: >> >> Another approach to consider is to slipstream updates into the install >> media - I use this approach in lieu of downloading and applying updates >> while generating the packer basebox, and just have an automated build that >> trickles them to an ISO build: >> http://www.pcworld.com/article/239634/how_to_speed_up_windows_7_installs_with_slipstreaming_and_usb.html >> >> On Monday, November 25, 2013 10:46:32 AM UTC-8, Jason Reeves wrote: >>> >>> Great, thanks! I can't believe I missed this! >>> >>> On Sunday, November 24, 2013 10:30:24 AM UTC-6, Shawn Neal wrote: >>>> >>>> packer-windows >>>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjoefitzgerald%2Fpacker-windows&sa=D&sntz=1&usg=AFQjCNEOx9Lb6uS_Xsd9cr1BnAxKQiDkdA> >>>> >>>> supports this >>>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fjoefitzgerald%2Fpacker-windows%2Fblob%2Fmaster%2Fscripts%2Fwin-updates.ps1&sa=D&sntz=1&usg=AFQjCNEdsOkgCX6vAifuGHjpkps3T_KOuw> >>>> out >>>> of the box. It can take a _long_ time for all the updates to be applied. >>>> >>>> On Friday, November 22, 2013 10:19:42 AM UTC-8, Jason Reeves wrote: >>>>> >>>>> I am to the point where I cannot figure out how to automate the >>>>> installation of windows updates before the vm is shutdown. Has anyone >>>>> else >>>>> attempted this or have ideas on how? >>>>> I have been dabbling with get-wuinstall but I am not getting too far. >>>>> >>>> -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/4e9fbb94-848a-43a6-bdc1-c2d9eb510679%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
