Advanced Windows PowerShell Scripting Video Training

Advanced Windows PowerShell Scripting Video Training
Advanced Windows PowerShell Scripting Video Training

Friday, September 16, 2011

How to manage drivers with PowerShell

Natively PowerShell does not have any cmdlets that let you manage a device driver.  You an use the Win32_pnpSignedDriver WMI class to enumerate the device drivers on your system.  There are two methods present; StartService and StopService.  At the very lest you can start and stop them.  Looking around MSDN, I was not able to find any addition methods for rolling back or disabling a driver which would be a nice feature to have.  In conclusion, you have some limited management functionality of device drivers using PowerShell

No comments: