【问题标题】:PowershellCore connection to a Powershell 5.1 remote computer?PowershellCore 连接到 Powershell 5.1 远程计算机?
【发布时间】:2021-06-25 22:29:19
【问题描述】:

我想知道是否可以从仅安装了 Powershell 5.1 的主机上的 Powershell 6/7 主机启动远程会话(这样我可以访问一些无法迁移到 Powershell 6 的 Powershell 5.1 功能/7) ?

问候,

【问题讨论】:

  • 您可以同时安装 Posh 5.1 和 6 实例。

标签: powershell powershell-remoting powershell-5.0 powershell-core


【解决方案1】:

要明确定位远程计算机上的 Windows PowerShell 会话(版本最高为 v5.1),请使用
-ConfigurationName Microsoft.PowershellInvoke-Command,例如。

事实上,从 PowerShell 7.1 开始,这仍然是 PowerShell 远程命令所针对的 默认 版本,如 preference variable $PSSessionConfigurationName 中所反映的那样。

更多信息请参见this post

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多