Skip to content

Instantly share code, notes, and snippets.

@brianfgonzalez
Last active October 5, 2016 13:09
Show Gist options
  • Save brianfgonzalez/15d415c2faf58b6097235723c9641628 to your computer and use it in GitHub Desktop.
Save brianfgonzalez/15d415c2faf58b6097235723c9641628 to your computer and use it in GitHub Desktop.
Import-Module "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.psd1"
If (-not (Test-Path "C:\mount")) { New-item -Type Directory -Force "C:\mount" }
Mount-WindowsImage -ImagePath "D:\AiO\Operating Systems\10x64Ent-MSUpdated2016Jul20\10x64Ent-MSUpdated2016Jul20.wim" -Path "C:\mount\" -Index 1
Get-WindowsDriver -Path "C:\mount" | % { Remove-WindowsDriver -Driver $_.Driver -Path "C:\mount" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment