nirsoft_uninstall_view.ps1 - limehawk/rmm-scripts GitHub Wiki
nirsoft_uninstall_view.ps1
Downloads NirSoft UninstallView utility and uses it to uninstall software matching a specified pattern.
Overview
This script downloads the NirSoft UninstallView utility and uses it to uninstall software matching a specified pattern using wildcard matching. The script automatically detects system architecture and downloads the appropriate version.
Purpose
Downloads NirSoft UninstallView utility and uses it to uninstall software matching a specified pattern using wildcard matching.
Prerequisites
- Windows OS
- Administrator privileges
- Internet connectivity
Configuration
Required Inputs
$appName: Name or pattern of application to uninstall (supports wildcards)
Behavior
- Validates input parameters
- Determines system architecture (32/64-bit)
- Downloads appropriate UninstallView version
- Extracts to limehawk\nirsoft directory
- Runs uninstall command with wildcard matching
- Cleans up downloaded zip file
Security Notes
- No secrets in logs
- Downloads from official NirSoft website
Exit Codes
- 0 = Success
- 1 = Failure
Example Output
[ INPUT VALIDATION ]
--------------------------------------------------------------
Application Pattern : Adobe*
System : 64-bit
Inputs validated successfully
[ DOWNLOAD ]
--------------------------------------------------------------
Downloading UninstallView (64-bit)...
Extracting to C:\limehawk\nirsoft...
Download completed
[ UNINSTALL ]
--------------------------------------------------------------
Attempting to uninstall: Adobe*
Uninstall command executed
[ CLEANUP ]
--------------------------------------------------------------
Removing downloaded zip file...
Cleanup completed
[ FINAL STATUS ]
--------------------------------------------------------------
Result : SUCCESS
Check manually to confirm uninstallation
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
Version History
- 2024-12-01 v1.0.0 - Initial release - migrated from SuperOps
Links
- View Script Source
- Scripts - Back to script index