HP BL685c HP Insight Management WBEM Providers for Windows Server 2003 and Win - Page 15
Scripting commands for HP Insight Management Agents 7.70 or later
UPC - 883585312177
View all HP BL685c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 15 highlights
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 15
Uninstalling SNMP-Based HP Insight Management Agents
15
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