I am trying to uninstall google chrome using powershell script but it shows me a popup to choose uninstall/cancel. How can i supress this by choosing uninstall button?
Set-Location 'path\to\my\chrome'
.\chrome.exe -ArgumentList '/uninstall', '/silent', '/nointeractive' -Wait
Get-Package *chrome* |% { & $_.Meta.Attributes["UninstallString"] }
@GeorgeGet-Package *chrome*
? I saw a post suggested\\SERVERNAME\chrome_installer.exe" --uninstall --force-uninstall
so drop the latest installer on a network path, and then run with those commands that way via UNC path... Also saw a post that saysFollow the instructions in this article: https://support.google.com/chrome/answer/111899?hl=en Get the remove.reg file, and then run it via login script in the user's session; you can remotely remove the specified folders, or add that task to the script as well.