Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Find the PUP/PUA or program to remove with:
- # Get-WmiObject -Class Win32_Product | select Name, IdentifyingNumber
- param (
- [string]$Computer = $(Read-Host "Enter Remote Computer"),
- [string]$GUID = $(Read-Host "Enter the GUID/IdentifyingNumber of the PUP")
- )
- # Change path to where yourPsExec is located.
- C:\Sysinternals\PsExec64.exe \\$Computer msiexec.exe /x $GUID /quiet /norestart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement