Skip to content
OnMSFT.com
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
Menu
  • Home
  • About
  • Contact
  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Edge
  • Teams
  • Gaming
  1. Home
  2. News
  3. Use PowerShell to Patch VHD and WIM Image Files

Use PowerShell to Patch VHD and WIM Image Files

Ron Ron
August 23, 2019
1 min read

Microsoft PFE Ben Pearce shows how to use Windows PowerShell to perform offline servicing of Virtual Disks (VHD) and Windows Imaging Format (WIM) files.

This post discusses the ServiceImage.ps1 script that is located on the Scripting Guys Script Repository.  This script injects patches to an offline .vhd or .wim file. It is a really useful script and also shows nicely how to wrap regular command line tools in Windows PowerShell. Hopefully this post will help you do the following tasks.

  1. Understand the high level flow of the script
  2. Use Deployment Image Servicing and Management (DISM) and DiskPart command lines
  3. Generate command lines at run time
  4. Run command lines within Windows PowerShell
TechNet Blogs

Further reading: PowerShell, Windows

Share this article:
Tags:
PowerShell Windows
Previous Article BBM Beta update fixes slow initial start-up, and its first impression Next Article Microsoft to launch free-to-play games on Xbox Live?

Related Articles

Intel plans up to 30% CPU price hikes in 2026 as AI demand rises, supply tightens, and consumer chip costs increase worldwide.

Intel CPU prices set to rise up to 30% in 2026 as AI demand reshapes supply

April 3, 2026

Google Gemma 4 Runs Locally on NVIDIA RTX GPUs With Faster AI Performance

April 2, 2026

Control Resonant Expands Gameplay With Bigger Team, Open Combat, and Melee Focus

April 2, 2026

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Intel CPU prices set to rise up to 30% in 2026 as AI demand reshapes supply
  • Google Gemma 4 Runs Locally on NVIDIA RTX GPUs With Faster AI Performance
  • Control Resonant Expands Gameplay With Bigger Team, Open Combat, and Melee Focus
  • NVIDIA Runs The Witcher 4 Forest Demo at 4K 80FPS Using RTX Mega Geometry
  • TSMC Plans Massive ‘GigaFab’ Expansion in Arizona to Match Taiwan Output

Recent Comments

  1. XxRIVTYxX on Intel Says It Tried to Help Before Crimson Desert Dropped Arc Support
  2. Gaurav Kumar on Chrome Prepares Nudge to ‘Move Tabs to the Side’ as Vertical Tabs Near Release
OnMSFT.com

The Tech News Site

Categories

  • Windows
  • Surface
  • Xbox
  • How-To
  • OnPodcast
  • Gaming
  • Edge
  • Teams

Recent Posts

  • Intel CPU prices set to rise up to 30% in 2026 as AI demand reshapes supply
  • Google Gemma 4 Runs Locally on NVIDIA RTX GPUs With Faster AI Performance
  • Control Resonant Expands Gameplay With Bigger Team, Open Combat, and Melee Focus
  • NVIDIA Runs The Witcher 4 Forest Demo at 4K 80FPS Using RTX Mega Geometry
  • TSMC Plans Massive ‘GigaFab’ Expansion in Arizona to Match Taiwan Output

Quick Links

  • About OnMSFT.com
  • Contact OnMSFT
  • Join Our Team
  • Privacy Policy
© 2010–2026 OnMSFT.com LLC. All rights reserved.
About OnMSFT.comContact OnMSFTPrivacy Policy