/

4 Ways to Remotely Uninstall Software (and Keep It Uninstalled with Automation)

by Peter Bretton, VP, Product Strategy
4 Ways to Remotely Uninstall Software Blog Banner
4 Ways to Remotely Uninstall Software Blog Banner

Try our #1 rated endpoint management platform on G2

NinjaOne dashboard screenshot

Automate the Hardest Parts of IT

Key Points

  • Remotely uninstall software with NinjaOne via the software inventory by device or organization.
  • Use remote access or screen control for manual uninstalls (best for complex or blocked apps).
  • Run uninstall commands like msiexec /x or Get-WmiObject remotely via PowerShell or the command line.
  • Use policy conditions and scripts to automatically remove software.

Whether you have standard bloatware to remove from end-user machines during onboarding, want to blocklist applications for security reasons, or need to remotely uninstall software across an entire organization, NinjaOne can make the process fast and easy.

Deploy, uninstall, and update software at scale for Windows, macOS, and Linux endpoints in your IT environment.

Get started with NinjaOne Software Management.

How to remotely uninstall software with NinjaOne®

  1. Locate the software: Scroll through the software inventory list, which has all the applications on your managed devices. The list comprises the devices on which the applications are installed, their version numbers, and their installation dates.
  2. Remove at scale: Use the software inventory to remove the installed applications by device or organization, with no per-application script required, for any application that supports silent uninstalls.
  3. Keep applications removed: Maintain the current state by creating a policy condition that detects the application, then attaching an uninstall script so NinjaOne removes the software when it is detected again.

Method 1: Remotely uninstall software via the NinjaOne dashboard

Technicians can remotely uninstall software via the software inventory tab, within organizations, or on devices. The software inventory can be used to uninstall applications that support silent installation with one click, which is best for mass uninstalls or removing applications from a single device.

This is an ideal workflow for mass uninstalling an application across your client base, within an organization, or for removing an application from an individual device.

removing software with rmm

Method 2: Remotely uninstall software via remote access

Remote access is ideal when a complex uninstallation process is required on a single device or when you cannot uninstall an application via other means. However, note that remote access uninstall does not scale well.

uninstalling software via remote access

Method 3: Remotely uninstall software via the remote command line/PowerShell interface

The PowerShell/remote command-line interface lets you run uninstall commands, such as msiexec /x for MSI-based applications, on an individual device. Use this method if you cannot uninstall an application via other means.

uninstalling software with powershell

Method 4: Remotely uninstall software via automation with policies, conditions, and scripts

Policy conditions and custom scripts allow you to fully automate application removal across your endpoints. While the other methods mentioned above are also incredibly effective, they remove applications only once, and a policy condition removes them each time NinjaOne detects them. IT automation can help uninstall programs remotely and ensure they remain unavailable on end-user devices.

automate remotely uninstalling software

How to use automation to uninstall software remotely in NinjaOne

automating software removal with rmm

This final option for automating your uninstaller can save MSPs significant time and other critical resources. Effectively leveraging automation for software removal requires two steps in NinjaOne:

  1. Creating a software removal script
  2. Applying automation

Step 1: Create a Software Uninstall Script

You can create an uninstall script in one of the languages NinjaOne supports, such as Batch or PowerShell.

Things to include in your script for uninstalling software remotely (using PowerShell as an example):

  1. Validate that the software is installed. You can use the Get-WmiObject or Get-ItemProperty cmdlet. Get-WmiObject is available only in Windows PowerShell 5.1 or earlier. Use Get-CimInstance in PowerShell 7 and later versions.
  2. Uninstall the application. You can use Get-WmiObject and invoke .uninstall() or msiexec and use the ‘/x’ parameter.
  3. Use the appropriate silent or quiet uninstall parameter to avoid end-user interruption.
  4. Ensure your script is general enough to cover broad software removal requirements and use parameters to identify which application to uninstall. NinjaOne scripts can accept parameters when deployed.

rmm use cases tips animated

You might be interested in our script, “How to Automate App Uninstallation on macOS with Shell Script“.

Step 2: Apply Automation

You can use policy conditions in NinjaOne to identify when an unwanted application is installed and automate the deployment of your uninstall script.

1. Create a new policy condition. If this blocklist applies across organizations, make this condition in your parent policy.

    • Set the condition type to ‘Software’ and presence to ‘Exists’.
    • Type the name of the application in the ‘Name’ field. The entry must match the exact name of the application. Meanwhile, wildcard characters improve match rates.

 

remotely uninstalling software with ninjarmm automation step 1

 

2. Add your uninstall script to the condition so it is triggered when the identified application is detected.

If you made the uninstall script dynamic, it can accept parameters. This lets you use the application name from step one to specify which application to uninstall.

 

remotely uninstalling software with ninjarmm automation step 2

 

3. You may want to add notifications or tickets for billing or alerting purposes.

 

remotely uninstalling software with ninjarmm automation step 3

 

4. Save the condition.

Get visibility over all your software and automate software management processes for better IT efficiency.

Try NinjaOne for 14 days

How to remove unwanted software at scale without custom scripts

To remove unwanted software from thousands of computers without writing a custom uninstall script for each app, start with the software inventory in NinjaOne. There, you will see a list of the applications installed on managed devices. Its uninstall action removes any application that supports silent uninstallation, within an organization or on individual devices, with no script required.

For applications the software inventory cannot remove, you can write one general uninstall script that accepts the application name as a parameter. NinjaOne scripts accept parameters when deployed, so the same script can remove many different applications.

You can also create a policy condition that detects unwanted applications on your devices and attach your uninstall script to it. NinjaOne can then remove the applications upon detection.

Monitor and manage all your endpoints using NinjaOne

With the steps outlined above, you now have four different ways to uninstall software remotely. If you’re looking for an endpoint management solution that enables IT teams to uninstall applications remotely, automate patch management, provide real-time monitoring and alerting, and more, consider NinjaOne.

Using NinjaOne’s powerful endpoint management and RMM tools, users can monitor, manage, and run their IT environments with ease. See the difference NinjaOne can make with this free trial.

FAQs

The fastest way is through an RMM platform’s software inventory tool. In NinjaOne, you can open the software inventory tab and uninstall an application across an entire organization or client base in a few clicks, no need to touch each device individually.

For stubborn or complex uninstalls, remote access lets you manually walk through the removal process on the device itself. It’s the most reliable option for apps that resist standard uninstall commands, though it doesn’t scale well across many machines.

Set up a policy condition that checks for the software’s presence (condition type “Software,” presence “Exists”), then attach an uninstall script to that condition. Once saved, the policy automatically triggers the script any time the app is detected. This keeps it from staying installed permanently.

Manual methods work well for individual devices or one-time cleanups but require you to repeat the process if the app reappears. Automation via policy conditions and scripts continuously detects and removes software, making it the only scalable option for ongoing software blocklisting across many endpoints.

You might also like

Ready to simplify the hardest parts of IT?