2012-07-19 41 views
1

我在遠程計算機上加密/解密時遇到了一些問題。例如:當我運行以下命令時我收到以下錯誤。PS Remoting失敗:計算機必須信任委派,並且當前用戶帳戶必須配置爲允許委派。「

任何人都知道如何解決這個問題呢?

[remote machine]: PS C:\> Add-Type -assembly System.Security 
[remote machine]: PS C:\> $passwordBytes = [System.Text.Encoding]::Unicode.GetBytes("Password!") 
[remote machine]: PS C:\> $entropy = [byte[]](1,2,3,4,5) 
[remote machine]: PS C:\> $encrytpedData = [System.Security.Cryptography.ProtectedData]::Protect($passw 
ordBytes, $entropy, "CurrentUser") 
Exception calling "Protect" with "3" argument(s): "The requested operation cannot be completed. The computer must be tr 
usted for delegation and the current user account must be configured to allow delegation. 
" 
At line:1 char:71 
+ $encrytpedData = [System.Security.Cryptography.ProtectedData]::Protect <<<< ($passwordBytes, $entropy, "CurrentUser") 
    + CategoryInfo   : NotSpecified: (:) [], MethodInvocationException 
    + FullyQualifiedErrorId : DotNetMethodException 

問候, 納雷什

回答

相關問題