HP Insight Management WBEM Providers 2.8.0.0 User Guide

To run the Uninstall Agents Tool from HP SIM:
1. Use a web browser to log in to the HP SIM console.
2. From the HP SIM menu, select Deploy > Deploy Drivers, Firmware, and Agents.
3. Select Uninstall HP Insight Management Agents.
4. Select the list of target servers to remove Agents from, and then click Apply.
5. To confirm the list of target servers, click Next.
6. To remove Agents from the target servers, click Run Now.
The Uninstall Agents Tool displays the task results in the Stdout results area.
Scripting commands for uninstalling HP Insight Management Agents
Use the following scripting command to uninstall HP Insight Management Agents.
Scripting commands for HP Insight Management Agents 6.30 through 7.60
To uninstall HP Insight Management Agents, run the following commands from a script or from a
Window command prompt on a target system:
$WINDIR\system32\cpqmgmt\aguninst.exe /s
$SYSTEMDRIVE\hp\hpsmh\bin\smhreset
The $WINDIR environment variable refers to the Windows® directory (for example, c:\winnt on
Window 2000 or c:\windows on Windows Serve 2003).
The $SYSTEMDRIVE environment variable refers to the system drive (for example, c:).
The
aguninst.exe
/s command uninstalls the HP Insight Management Agents.
The
smhreset
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
Scripting commands for uninstalling HP Insight Management Agents 13