Previous Topic

Next Topic

Scripting commands for HP Insight Management Agents 7.70 or later

To uninstall HP Insight Management Agents, run the following Microsoft® Visual Basic Scripting Edition (VBScript) code from a Windows® command prompt on a target system:

strComputer = "."

SW = "HP Insight Management Agents"

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