0
I want to uninstall all the third party drivers from a Windows image using DISM but it seems it does not accept wildcards. This means I would have to uninstall them all manually which I want to avoid. So far I've created a list of all the drivers in a table format as seen in the image below:
I have two options as far as I can see:
- Use the bash subsystem in Windows 10
- Use PowerShell.
I only care about the oem*.inf part. However beyond just filtering out just the oem*.inf text I would like to amend it to be as so:
/Driver:oem100.inf /Driver:oem101.inf /Driver:oem102.inf /Driver:oem103.inf
etc, in line and not in a list format.
I thought I could do this with grep, but my skills in Linux are not as good as I would like them to be. Using PowerShell seems promising but again I'm not advanced enough yet. How can I achieve this?