PowerShell Tutorials

How to Remove Radmin Viewer with PowerShell

Radmin Viewer, widely used for remote control and network monitoring, sometimes requires uninstallation across multiple devices, especially in managed environments. Using PowerShell to remove it is efficient and can be automated through Remote Monitoring and Management (RMM) tools, simplifying the process for IT administrators. This guide provides a PowerShell script to detect and remove Radmin Viewer, which you can deploy seamlessly through most RMM tools.

PowerShell-7

How to Remove Radmin Viewer with PowerShell

  1. Set Up the Script in Your RMM Tool: Most RMM tools, such as SuperOPS, Syncro, or N-Able, support PowerShell scripts. Copy the script below into the scripting or automation section of your RMM tool and configure it to run with administrative privileges.
  2. Run the Script to Detect and Uninstall Radmin Viewer: Once set up, this script will automatically detect and uninstall Radmin Viewer if installed.
   # Define the partial name for Radmin Viewer, allowing for version numbers
   $applicationNamePattern = "^Radmin Viewer"

   # Check if any version of Radmin Viewer is installed
   $app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match $applicationNamePattern }

   # If Radmin Viewer is found, uninstall it
   if ($app) {
       Write-Output "Radmin Viewer found. Uninstalling..."
       $app.Uninstall() | Out-Null
       Write-Output "Radmin Viewer has been uninstalled."
   } else {
       Write-Output "Radmin Viewer is not installed on this system."
   }

Script Breakdown

The script detects any version of Radmin Viewer by matching the application name. It uses the Get-WmiObject command to list installed software and filter for matches based on a specified name pattern. Here’s a closer look at each section:

  • Define the Application Name Pattern:
   $applicationNamePattern = "^Radmin Viewer"

Using a regular expression, this pattern finds any Radmin Viewer installation, regardless of version.

  • Search for the Application:
   $app = Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -match $applicationNamePattern }

This line retrieves installed software details and filters for “Radmin Viewer.” If found, the script proceeds to uninstall; if not, it outputs that Radmin Viewer isn’t installed.

  • Uninstall the Application:
   if ($app) {
       Write-Output "Radmin Viewer found. Uninstalling..."
       $app.Uninstall() | Out-Null
       Write-Output "Radmin Viewer has been uninstalled."
   }

If Radmin Viewer is detected, the Uninstall() method removes it from the system. The output messages verify the uninstallation status, making it easy to monitor in your RMM console.

Running the Script in an RMM Tool

Using an RMM tool to deploy this script provides multiple advantages:

  • Automation Across Multiple Devices: RMM tools allow you to schedule the script across endpoints, streamlining the uninstallation process for all systems in your managed environment.
  • Monitoring and Logging: RMM tools display output messages directly in the console, so you’ll see whether Radmin Viewer was successfully uninstalled or not present, simplifying the verification process.
  • Scheduled and Triggered Execution: You can set the script to run on demand, on a schedule, or as a triggered event, such as when a device checks in.

Conclusion

Running this PowerShell script through an RMM tool enables quick and efficient uninstallation of Radmin Viewer across multiple devices, making it ideal for MSPs and IT admins. It ensures a consistent removal process and reduces manual effort, enhancing the overall efficiency of managing software environments.


Discover more from Patrick Domingues

Subscribe to get the latest posts sent to your email.

author avatar
Patrick Domingues

Leave a Comment

Stay Informed

Receive instant notifications when new content is released.