Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # HP Bloatware Removal v1.04
- $ErrorActionPreference = "silentlycontinue"
- $hpguids = get-wmiobject -class win32_product | where-object {$_.Name -like "*hp*"} | Where-Object { $_.Name -notmatch "client security manager|trust circles" }
- foreach($guid in $hpguids){
- $id = $guid.IdentifyingNumber
- &cmd /c "msiexec /uninstall $($id) /qn /norestart"
- write-host "$guid.Name has been removed."
- }
- write-host "All HP Bloatware has been removed."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement