beautypg.com

HP Insight Management WBEM Providers User Manual

Page 16

background image

command resets the HP System Management Homepage.

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

Uninstalling SNMP-Based HP Insight Management Agents

16