效果图:
实现代码:
$Install="$env:TEMP\chrome_install.exe" $url='http://dl.google.com/chrome/install/375.126/chrome_installer.exe' Invoke-RestMethod -uri $url -OutFile $Install -UseBasicParsing Start-Process $Install -ArgumentList '/silent /install' -Wait Remove-Item -Path $Install