0

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
6
  • Have you seen this answer? stackoverflow.com/questions/113542/… Commented Oct 22, 2021 at 20:19
  • If not, this one looks promising: Get-Package *chrome* |% { & $_.Meta.Attributes["UninstallString"] } @George Commented Oct 24, 2021 at 14:26
  • + Get-Package chrome |% { & $_.Meta.Attributes["UninstallString"] } + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: ("C:\path\to\...xe" --uninstall:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
    – ven
    Commented Oct 25, 2021 at 5:36
  • What's the output of just Get-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 says Follow 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. Commented Oct 26, 2021 at 1:45
  • Get-Package chrome -> Here i see some output with name,version, provider name
    – ven
    Commented Oct 26, 2021 at 11:22

0

You must log in to answer this question.