PowerShell script failure on remote execution
Posted
by
rinotom
on Stack Overflow
See other posts from Stack Overflow
or by rinotom
Published on 2011-06-29T14:14:00Z
Indexed on
2011/06/29
16:22 UTC
Read the original article
Hit count: 357
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??
© Stack Overflow or respective owner