OSDWindowsImage
David Segura @SeguraOSD
There aren't many days that I don't mount a WIM file ... which is where these two functions will become my primary tools
Functions
Mount-WindowsImage
Mount-OSDWindowsImage is based off of Mount-WindowsImage. So why the need for a new function? Here's a few reasons

Mount-OSDWindowsImage
Mount WIM

Mount and Explore

Update-OSDWindowsImage
Finally this is the gem for those of you that Hate OSDBuilder. You will need an up to date OSDSUS for this to work properly
Windows Image Mount Path Is Optional

Multiple Windows Images - Mounted

Multiple Windows Images - Mount | Update | Dismount

Install Updates
OK, I think you get the idea of the different ways you can use it ... so let's focus on the Updates. You can use these Update values
And there's even a BitsTransfer parameter too!

One-Liner
So here is your PowerShell One-Liner to Mount, Identify the OS, Identify the Required Updates, Download the Updates, Apply the Updates, and finally, Dismount and Save an Install.wim. This by far makes the shortest WIM Update script ever. Enjoy!

Or you can Script the solution for better readability

Downloads and Logs
If you need the Downloads and Logs (you know how I am about Log files), simply look in $env:TEMP\OSD

OSD Helper Functions
Finally some other functions from the OSD Module were used to make this all work
Identify the Mounted OS Information
Get-RegCurrentVersionIdentify the Installed Updates
Get-SessionsXmlDownload the Updates
Save-OSDDownloadLast updated
Was this helpful?