
時々、Linux の PowerShell から PowerShell セッションでリモート コマンドを実行しようとすると、次のエラーが発生します。
Invoke-Command: このプラットフォームでは Windows Principal 機能はサポートされていません。
Mac の PowerShell では正常に動作しますが、Linux の PowerShell では動作しません。
Ubuntu から:
$PSVersionTable
Name Value
---- -----
PSVersion 6.0.1
PSEdition Core
GitCommitId v6.0.1
OS Linux 4.4.0-1041-aws #50-Ubuntu SMP Wed Nov 15 22:18:17 UTC 2017
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
CentOS から:
$PSVersionTable
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Linux 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Enter-PSSession を試みると、常に次の結果が表示されます:
Enter-PSSession: 現在 PowerShell PSSession 内にいるため、Enter-PSSession コマンドレットを使用して別の PSSession に入ることはできません。
そして、Invoke-Command は正常に動作します。