beautypg.com

HP Insight Management WBEM Providers User Manual

Page 9

background image

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("Select * from Win32_Product")

For Each objSoftware in colSoftware
If objSoftware.Name=SW Then
objSoftware.Uninstall()
End If
Next

Scripting commands for uninstalling HP WBEM Providers

9