Deleting Disabled Configuration Manager Drivers
Hey guys, I thought I'd share a quick script I wrote to delete drivers that I had disabled in the System Center Configuration Manager 2007 (ConfigMgr) console. See, you can disable multiple drivers through the ConfigMgr console, but you can't delete multiple driver ojects, which is pretty frustrating, if you ask me. Simply update the "xxx" with your site code, and execute the script on your SCCM site server!
namespace = "root\cimv2\site_xxx"
qry = "select * from sms_driver where IsEnabled = 'false'"
set sms = GetObject("winmgmts:" & namespace)
set drivers = sms.ExecQuery(qry)
for each driver in drivers
call driver.Delete_()
nextI hope this helps!