Google Chrome —— 使用 PowerShell 命令安裝 Google Chrome 瀏覽器

 PowerShell命令

$Path = $env:TEMP; $Installer = "chrome_installer.exe"; Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait; Remove-Item $Path\$Installer

格式化 

$Path = $env:TEMP;
$Installer = "chrome_installer.exe";
Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer;
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item $Path\$Installer

參考文章

https://www.yuque.com/antiy/study-notes/powershell-chrome

https://blog.csdn.net/weixin_42644062/article/details/96478348

https://medium.com/@uqualio/how-to-install-chrome-on-windows-with-powershell-290e7346271

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章