【发布时间】:2019-07-02 17:14:41
【问题描述】:
我已经在我的本地机器上安装了巧克力,我想使用 powershell 远程安装软件,如果我能得到任何帮助,我将不胜感激。
【问题讨论】:
-
我正在使用 powershell。
标签: powershell chocolatey
我已经在我的本地机器上安装了巧克力,我想使用 powershell 远程安装软件,如果我能得到任何帮助,我将不胜感激。
【问题讨论】:
标签: powershell chocolatey
invoke-command -ComputerName $remotemachine -Credential (Get-Credential) -ScriptBlock {install choco same way as local}
invoke-command -ComputerName $remotemachine -Credential (Get-Credential) -ScriptBlock {choco install package xyz}
或通过New-PSSession 启动与远程客户端的会话?
【讨论】: