远程执行时PowerShell脚本失败
在执行PowerShell远程脚本时,我遇到如下错误远程执行时PowerShell脚本失败,powershell,powershell-2.0,powershell-remoting,Powershell,Powershell 2.0,Powershell Remoting,在执行PowerShell远程脚本时,我遇到如下错误 Invoke-Command : Exception calling "ToXmlString" with "1" argument(s): "The requested operation cannot be completed. Th e computer must be trusted for delegation and the current user account must be configured to allow dele
Invoke-Command : Exception calling "ToXmlString" with "1" argument(s): "The requested operation cannot be completed. Th
e computer must be trusted for delegation and the current user account must be configured to allow delegation.
执行中断的确切代码行如下所示:
$rsa = New-Object System.Security.Cryptography.RSACryptoServiceProvider
$key = $rsa.ToXmlString($true)
有谁能帮我解决这个问题吗???看起来就像错误所说的,你需要信任才能授权。我在网上找到了这些链接