Skip to main content

Remove - PUA

Overview

This is a Ninja RMM implementation of the agnostic script Remove-PUA. It manages the removal of predefined bloatware packages or lists installed bloatware based on a centrally maintained list. It offers three primary operations: bulk removal, selective removal, and bloatware listing. The remove parameter allows bypassing the PUA List to remove any installed AppxPackage.

PUA List: PUA List

EXERCISE EXTREME CAUTION - Removing system components may cause system instability.

Sample Run

Select any target, such as a computer or a group.
Go to Run > Run Automation > Script
Image1
Image2

Sample run to List Bloatware. This lists the bloatware detected on the endpoint that the script can remove:
Image3

Below attempts to remove the Microsoft.XboxApp:
Image4

The below attempts to remove all detected bloatware listed in the PUA List from the endpoint:
Image5

Dependencies

Parameters

ParameterExampleRequiredDefaultTypeDescription
RemoveAllFalseCheckboxSelect it to remove all packages from specified categories (default: both Microsoft and ThirdParty) with or without exceptions.
CategoryFalseMsftBloatApps,ThirdPartyBloatAppsDropDownUsed with RemoveAll to filter bloatware to a certain category, allowing you to select just a specific category of bloatware.
ExceptxboxGameOverlayFalseStringUsed with RemoveAll or Category to remove all except some item(s) from a category or all together.
RemoveMicrosoft.BingNews, Microsoft.BingWeather, Microsoft.PeopleStringSpecify name(s) of the bloatwares to uninstall.
ListBloatwareTrueCheckboxList installed packages without making changes.
PUAListSourcehttps://my.cdn.example/pua.json, C:\ProgramData\_Automation\Script\PUA\pua.jsonFalseStringOptional source for an alternate PUA list JSON. When provided, the script will use the specified local JSON file or downloadable URL instead of the default PUA list (https://content.provaltech.com/attachments/potentially-unwanted-applications.json).

Automation Setup/Import

Automation Configuration

Output

  • Activity Details

Changelog

2026-08-24

  • Added another parameter PuaListSource. Its an Optional source for an alternate PUA list JSON. When provided, the script will use the specified local JSON file or downloadable URL instead of the default PUA list.
  • Updated the document as per our new standards.

2025-03-27

  • Initial version of the document