PowershellCore 连接到 Powershell 5.1 远程计算机?

PowershellCore connection to a Powershell 5.1 remote computer?

我想知道是否可以从 Powershell 6/7 开始在仅安装了 Powershell 5.1 的主机上托管远程会话(这样我就可以访问一些无法迁移到的 Powershell 5.1 功能电源外壳 6/7) ?

此致,

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

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

有关详细信息,请参阅