Skip to main content

PUA Remove

Summary

This is a VSA 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

TimeActionResultUser
11:53:35 am 27-Mar-25PUA RemoveSuccess THENprovaltech.com/ram.kishor
11:53:34 am 27-Mar-25PUA Remove-0009Log: 2025-03-27 11:52:27 INIT ... Microsoft.3DBuilder ... Checking the lists ...provaltech.com/ram.kishor
11:53:34 am 27-Mar-25PUA Remove-00012025-03-27 11:53:30 INIT ... Microsoft.BingNews ... found Microsoft.BingNews in Microsoft bloat apps list ...provaltech.com/ram.kishor
11:53:34 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)Success THENprovaltech.com/ram.kishor
11:53:34 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0016Powershell command complete. Results returned to global variable #global:psresult# and saved in the Agent's Documents tab of the server.provaltech.com/ram.kishor
11:53:34 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0016Informational: GetFile command overwrote the server file C:/Kaseya/UserProfiles/204148124820810/GetFiles/../docs/psoutput.txt with the new contents from c:/provaltech/psoutput.txt in THEN step 3.provaltech.com/ram.kishor
11:53:29 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0011Executing 64-bit Powershell command as System: "" -command "%ProgramData%/_automation/AgentProcedure/PUARemove/Remove-PUA.ps1 -Remove Microsoft.BingNews" >"c:/provaltech/psoutputtmp.txt"provaltech.com/ram.kishor
11:53:29 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0013Sending output to global variable.provaltech.com/ram.kishor
11:53:29 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0008Custom commands detected as %ProgramData%/_automation/AgentProcedure/PUARemove/Remove-PUA.ps1 -Remove Microsoft.BingNewsprovaltech.com/ram.kishor
11:53:29 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0003No Powershell file variable detected.provaltech.com/ram.kishor
11:53:29 am 27-Mar-25Execute Powershell Command (64-bit, Run As System)-0002Powershell is present.provaltech.com/ram.kishor
11:53:26 am 27-Mar-25Execute Powershell CommandSuccess THENprovaltech.com/ram.kishor
11:53:25 am 27-Mar-25Execute Powershell Command-0011Powershell command completed!provaltech.com/ram.kishor
11:53:25 am 27-Mar-25Execute Powershell Command-0011Executing Powershell "" -Command "New-Item -Type Directory -Path %ProgramData%/_automation/AgentProcedure -name PUARemove" ""provaltech.com/ram.kishor
11:53:25 am 27-Mar-25Execute Powershell Command-0010Not sending output to variable.provaltech.com/ram.kishor
11:53:25 am 27-Mar-25Execute Powershell Command-0008New command variable is: -Command "New-Item -Type Directory -Path %ProgramData%/_automation/AgentProcedure -name PUARemove"provaltech.com/ram.kishor
11:53:25 am 27-Mar-25Execute Powershell Command-0008Custom commands detected as New-Item -Type Directory -Path %ProgramData%/_automation/AgentProcedure -name PUARemoveprovaltech.com/ram.kishor
11:53:24 am 27-Mar-25Execute Powershell Command-0002Powershell is present.provaltech.com/ram.kishor
11:53:16 am 27-Mar-25Run Now - PUA RemoveAdmin provaltech.com/ram.kishor scheduled procedure Run Now - PUA Remove to run at Mar 27 2025 11:53 AM

Variables

Variable NameDescriptionSyntax
RemoveAllRemove all bloatware from the machine. Can be used with #exceptions#'app1','app2','app3'
RemoveSpecificRemove specific apps per client request. It allows bypassing the PUA List to remove any installed AppxPackage.'app1','app2','app3'
categoryRemove all apps from a specific category. Multiple categories can be selected. Valid Categories: MsftBloatApps, ThirdPartyBloatApps'MsftBloatApps','ThirdPartyBloatApps'
exceptionsSet app exceptions for #RemoveAll# and #category# (Apps you want to keep)'app1','app2','app3'

Process

Runs the agnostic script Remove-PUA with the defined parameters.

Output

AP Log

Changelog

2025-04-10

  • Initial version of the document

2025-04-01

  • Fixed the bug where the script contained several outdated and potentially incorrect AppxPackage IDs in the bloatware removal arrays. Some Microsoft apps have changed their package identifiers in newer Windows versions, and some third-party apps may have incorrect publisher IDs.