Created
November 4, 2014 19:55
-
-
Save jonman364/f0a7d52803736f0c1ab5 to your computer and use it in GitHub Desktop.
Remove all OEM drivers from an offline image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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