【发布时间】:2018-07-03 03:09:45
【问题描述】:
我正在尝试在远程服务器上安装 google chrome,但是当我运行我的脚本时,没有返回错误,而且 MSI 不会自动安装该软件。该脚本可以在本地工作,但不能在远程工作。
这是脚本:
$msi = "MSI path"
Invoke-Command -ComputerName RemoteServer -ScriptBlock {param($msi) Start-Process msiexec.exe -Wait -ArgumentList "/I (MSI Path) /qn /passive"} -ArgumentList $msi
感谢任何帮助或反馈。
【问题讨论】:
标签: powershell google-chrome installation windows-installer remote-access