远程执行 PowerShell 脚本失败
在执行 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)
任何人都可以帮助我解决问题吗?
On executing a PowerShell Remote Script I am getting an error like following
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.
The exact line of code the execution is breaking is as follows:
$rsa = New-Object System.Security.Cryptography.RSACryptoServiceProvider
$key = $rsa.ToXmlString($true)
Can anybody help me to resolve out the issue??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它看起来就像错误所说的那样,您需要被信任才能进行委派。我在网上找到了这些链接。
他们在授权方面受到信任
Windows Server 2003 企业版
版本环境?
身份验证和故障排除
授权问题
It looks just like what the error says, you need to be trusted for delegation. I found these links on the web.
they are trusted for delegation in a
Windows Server 2003 Enterprise
Edition environment?
authentication and troubleshooting
delegation issues