New
#1
Powershell to remove device driver
I'm trying to write a powershell script to look for a specific device driver and uninstall it.
I'm trying
$device = Get-WmiObject Win32_PnPSignedDriver | select DeviceName,InfName| where {$_.devicename -like "*Realtek PCIE*"}
Because for some reason when i select InfName by itself, it returns nothing. but when I do it alongside DeviceName it gives me the inf. I then want to take this inf name and use it in
Remove-WindowsDriver -Path "c:\offline" -Driver "OEM1.inf"
so I can totally remove the driver on start up. Even though I try disabling the device, it always manages to reenable itself.