远程执行时PowerShell脚本失败

时间:2011-06-29 14:14:01

标签: powershell powershell-v2.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 delegation.

执行中断的确切代码行如下:

    $rsa = New-Object System.Security.Cryptography.RSACryptoServiceProvider
    $key = $rsa.ToXmlString($true)

有人可以帮我解决问题吗?

1 个答案:

答案 0 :(得分:0)