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

4 Ways to Remotely Uninstall Software Blog Banner

Whether you have standard bloatware you remove from end-user machines during onboarding, you want to blacklist applications due to security concerns, or you just need to uninstall an application remotely across an entire organization, NinjaOne can help you make the process fast and easy.

Ninja provides four ways to uninstall applications:

1) Remotely uninstall software via the NinjaOne dashboard

Specifically, users can remotely uninstall software via the software inventory tab, within organizations, or on devices.

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

removing software with rmm

2) Remotely uninstall software via remote access

Remote access is ideal for when either a complex uninstallation process is required on an individual device, or if you cannot uninstall an application via other means. Using remote access to uninstall software does not scale well.

uninstalling software via remote access

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

Similar to remote access, you can uninstall software with PowerShell / remote command line, and it’s ideal for when a complex uninstallation process is required on an individual device or if you cannot uninstall an application via other means.

uninstalling software with powershell

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, only through IT automation can you uninstall programs remotely and ensure they stay unavailable to end-users.

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 a lot of 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

1) Create a software uninstall script

You can create an uninstall script using one of the languages NinjaOne supports for scripting, 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
  2. Uninstall the application. You can use Get-WmiObject and invoke .uninstall() or msiexec and use the ‘/x’ parameter.
  3. Using the appropriate silent or quiet uninstall parameter helps avoid end-user interruption.
  4. NinjaOne scripts can accept parameters when deployed. Make your script general enough to broad software removal requirements and use parameters to identify which application to uninstall.

rmm use cases tips animated

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

2) Apply automation

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

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

    1. Set the condition type to ‘Software’ and presence to ‘Exists’.
    2. Type the name of the application in the ‘Name’ field.

 

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, you can use the application name from step one to tell your script which application to uninstall.

 

remotely uninstalling software with ninjarmm automation step 2

 

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

 

remotely uninstalling software with ninjarmm automation step 3

 

4) Save the condition.

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 are able to monitor, manage, and run their IT environments with ease. See the difference NinjaOne can make with this free trial.

Next Steps

Building an efficient and effective IT team requires a centralized solution that acts as your core service deliver tool. NinjaOne enables IT teams to monitor, manage, secure, and support all their devices, wherever they are, without the need for complex on-premises infrastructure.

You might also like

Ready to become an IT Ninja?

Learn how NinjaOne can help you simplify IT operations.

Watch Demo×
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

Start a Free Trial of the
#1 Endpoint Management Software on G2

No credit card required, full access to all features

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).