【问题标题】:How do Install software to a remote computer using chocolatey?如何使用 Chocolatey 将软件安装到远程计算机?
【发布时间】:2019-07-02 17:14:41
【问题描述】:

我已经在我的本地机器上安装了巧克力,我想使用 powershell 远程安装软件,如果我能得到任何帮助,我将不胜感激。

【问题讨论】:

  • 我正在使用 powershell。

标签: powershell chocolatey


【解决方案1】:

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 启动与远程客户端的会话?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-04-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-08
    相关资源
    最近更新 更多