superops_agent_uninstall_windows_legacy.ps1 - limehawk/rmm-scripts GitHub Wiki
superops_agent_uninstall_windows_legacy.ps1
Uninstalls the legacy SuperOps agent on Windows systems using hardcoded IdentifyingNumber.
Overview
Uninstalls the legacy SuperOps agent on Windows systems using the product's IdentifyingNumber. This script is intended for environments where the agent cannot be uninstalled via standard methods or newer uninstallers.
Purpose
This script provides a legacy uninstallation method for older SuperOps agent installations that may not respond to standard uninstallation procedures. It uses WMI (Win32_Product class) with a hardcoded IdentifyingNumber to locate and remove the agent.
Prerequisites
- PowerShell 2.0 or later
- Administrative privileges are required to uninstall software
- WMI service must be running
Configuration
Required Inputs
None. The IdentifyingNumber is hardcoded within the script.
Settings
None.
Data Sources & Priority
- Hardcoded IdentifyingNumber for the legacy SuperOps agent
- WMI (Win32_Product class) to locate and uninstall the product
Behavior
- Queries WMI for products matching the hardcoded IdentifyingNumber
- Invokes the Uninstall method on any found product
- Designed for silent, unattended execution
Security Notes
- This script does not handle sensitive data or credentials
- The IdentifyingNumber is publicly known for the SuperOps agent
Exit Codes
- 0: Success (product uninstalled or not found)
- 1: Failure (e.g., insufficient permissions, WMI error)
Example Output
[ OPERATION ]
Attempting to uninstall SuperOps agent with IdentifyingNumber '{3BB93941-0FBF-4E6E-CFC2-01C0FA4F9301}'...
[ FINAL STATUS ]
SuperOps agent uninstallation completed.
Version History
- v1.0.0 (2025-11-02): Initial version, extracted from SuperOps
Links
- View Script Source
- Scripts - Back to script index