Watch Demo×
×

See NinjaOne in action!

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

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

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 across an entire organization, NinjaOne can help you make the process fast and easy.

Ninja provides four ways to uninstall applications:

1) Remotely uninstalling software via the NinjaOne dashboard

Specifically, 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 remove an application on an individual device.

removing software with rmm

2) Remotely uninstalling 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 uninstalling software via the remote command line / PowerShell interface

Similar to remote access, using the remote command line / PowerShell 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.

uninstalling software with powershell

4) Remotely uninstalling software via automation with policies, conditions, and scripts

Policy conditions and custom scripts allow you to full automate application removal across your endpoints. While the other methods mentioned above are incredibly effective, only through automation can you uninstall applications and ensure they stay unavailable to end-users.

automate remotely uninstalling software

 

How to use automation for software removal in NinjaOne

automating software removal with rmm

The final option, above, can save MSPs a lot of time by automating the removal of unwanted applications. 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 (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 blog post, “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 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.

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.

Learn more about NinjaOne Endpoint Management, check out a live tour, or start your free trial of the NinjaOne platform.

You might also like

Ready to become an IT Ninja?

Learn how NinjaOne can help you simplify IT operations.

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