close

Google Chrome爆重大遠端程式碼漏洞,已有攻擊程式流傳

Google Chrome快更新!工程師爆重大漏洞 易遭駭客攻擊

因為Chrome有漏洞!!

老闆不放心所以要求要移除伺服器上各個版本的Chrome 

加上管理的地方有好幾百台的伺服器一台一台登入太麻煩只好使用批次檔案移除各版本減少登入的窘境以及人力!!

Command line script

CD /d "C:\Program Files (x86)\Google\Chrome\Application"
for /r %%f IN (setup.ex?) DO  (
   "%%f" --uninstall --force-uninstall --multi-install --chrome --system-level
)
 
PowerShell script
(Get-ItemProperty -path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome').version | ForEach-Object {& ${env:ProgramFiles(x86)}\Google\Chrome\Application\$_\Installer\setup.exe --uninstall --multi-install --chrome --system-level --force-uninstall}
 

參考文章 :

Silent Uninstall Chrome Isn't Working

How to Uninstall Program using Command Prompt In Windows 7

How can i uninstall Google Chrome using Power Shell


arrow
arrow

    sungshu 發表在 痞客邦 留言(0) 人氣()