Skip to main content

Uninstall HP Bloatware

Summary

The script is designed to uninstall all HP bloatware from Windows workstations. It will only be considered unsuccessful if it encounters a failure while attempting to uninstall any of the HP bloatware. In cases where it successfully uninstalls some of the software but encounters issues with others, it will exit the process while logging the list of uninstalled software components.

Note: If the ticketcreationcategory under the globals of the script is set to something other than 0, it will create a ticket listing any individual software uninstallation failures and not only log the information.

Sample Run

Sample Run

Global Variables

NameDefaultMandatoryDescription
TicketCreationCategory0FalseSet it to '0' to disable ticketing. Mention the ticketcreationcategory to direct the tickets to the right board and to enable the tickets.

Output

  • Script log
  • Ticketing

Ticketing

Tickets will be generated only if the TicketCreationCategory value is greater than 0 in global parameters. Make sure to use the correct ticketcreationcategory to direct the tickets to the right board.

Subject: Uninstall HP Bloatware Failed on %ComputerName% (%ComputerID%)

Ticket Body: Script failed in uninstalling any HP bloatware from %ComputerName%. Here are the Uninstallation Attempt results: @psout@

The PC information is outlined below:
PC Name: %computername%
Last Login: %lastuser%
PC Model: @biosname@
OS: %os%
S/N OF PC: @biosver@

If the script fails to uninstall some of the HP bloatware from the machine but uninstalls the rest, it will indicate the software that remains.

The script has successfully removed all unnecessary HP bloatware, leaving only the following software components:
@RemainingUninstalledSoftwares@