Skip to content

Instantly share code, notes, and snippets.

@jonman364
Created November 4, 2014 19:55
Show Gist options
  • Save jonman364/f0a7d52803736f0c1ab5 to your computer and use it in GitHub Desktop.
Save jonman364/f0a7d52803736f0c1ab5 to your computer and use it in GitHub Desktop.
Remove all OEM drivers from an offline image
$image = “imagePath”
$dism = dism /image:$image /get-drivers
ForEach($line in $dism){
If($line -like “Published Name*”){
$sp = ($line -split “ “)
$oem = $sp[3]
Dism /image:$image /Remove-Driver /Driver:$oem
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment