$Path = $env:TEMP;
$Installer = "chrome_installer.exe";
Start-BitsTransfer -Priority Foreground -Source "https://dl.softmgr.qq.com/original/Browser/85.0.4183.121_chrome_installer_64.exe" -Destination $Path\$Installer;
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait;
Remove-Item $Path\$Installer;
使用Powershell安装Chrome浏览器
最新推荐文章于 2024-06-05 17:37:26 发布
本文介绍了一段使用PowerShell脚本自动化下载并静默安装Chrome浏览器的方法。通过调用BitsTransfer和Start-Process cmdlet,实现了从指定URL下载安装程序到临时目录,并以管理员权限运行安装程序。
4996

被折叠的 条评论
为什么被折叠?



