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
In the past, to run the GPResult command, you would need to either physically visit this client, have the user do it, or use and RDP connection. In all cases, this will disrupt the user. First, you need PowerShell remoting enabled on the target machine. You can do this via Group Policy . Open PowerShell and type this command. Invoke-Command –ScriptBlock {GPResult /r} –ComputerName <ComputerName> Replace <ComputerName> with the name of the target. Remember, the target needs to be online and accessible to you.
Comments