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®
- 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.
- 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.
- 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.

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.

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.

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.

How to use automation to uninstall software remotely in NinjaOne

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:
- Creating a software removal script
- 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):
- 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.
- Uninstall the application. You can use Get-WmiObject and invoke .uninstall() or msiexec and use the ‘/x’ parameter.
- Use the appropriate silent or quiet uninstall parameter to avoid end-user interruption.
- 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.

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.

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.

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

4. Save the condition.
Get visibility over all your software and automate software management processes for better IT efficiency.
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.
