1

I often set up servers in Hyper V on my laptop (running windows server 2008) to test varoius software.

Is there a way in powershell to build an image in Hyper V and run windows update on that image? Does anyone have a script that they could share?

Shiraz Bhaiji
  • 2,219
  • 8
  • 34
  • 47

1 Answers1

3

You can create a WIM image of the virtualized operating system, and run offline updates against it with DISM.

See here for more information: http://blogs.technet.com/b/configmgrdogs/archive/2012/02/15/applying-windows-updates-to-a-base-wim-using-dism-and-powershell.aspx

pauska
  • 19,532
  • 4
  • 55
  • 75
  • You can do the same without making a WIM image first. Just run the offline update against the image in the VHD, by mounting the VHD. – Jake Oshins Mar 17 '13 at 05:30