Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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

See here for more information:

share|improve this answer
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 5:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.