PowerShell 7 released, now Generally Available

Powershell 7 released, now generally available - onmsft. Com - march 5, 2020

PowerShell 7 is the latest major update to PowerShell, a cross-platform automation and configuration tool for Windows, Linux, and macOS. In a post on the Microsoft PowerShell blog, Microsoft Project Manager Joey Aiello announced PowerShell 7, which is now generally ... Read more

Use PowerShell to Patch VHD and WIM Image Files

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