首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Powershell remoting -策略不允许委派用户凭据

Powershell remoting -策略不允许委派用户凭据
EN

Stack Overflow用户
提问于 2013-08-08 04:55:09
回答 4查看 50.4K关注 0票数 27

我是powershell的新手,在使用凭证委派时遇到了问题。我有以下脚本:

代码语言:javascript
复制
$session = New-PSSession myserver -Authentication CredSSP -Credential DOMAIN\Administrator
Invoke-Command -Session $session -ScriptBlock { <Some PowerShell Command> }

在运行它之前,我执行了以下操作:

  1. 在myserver上运行Enable-PSRemoting
  2. 在myserver上运行Enable-WSManCredSSP Server
  3. 在myserver上运行Restart-Service WinRM
  4. 在客户机上运行Enable-WSManCredSSP Client –DelegateComputer myserver
  5. 已重新启动服务器和客户端。

但是一旦我运行这个脚本,我就会得到以下错误消息:

代码语言:javascript
复制
[myserver] Connecting to remote server failed with the following error message : The WinRM client cannot process the request. A computer policy does not allow the delegation of
 the user credentials to the target computer. Use gpedit.msc and look at the following policy: Computer Configuration -> Administrative Templates -> System -> Credentials Delega
tion -> Allow Delegating Fresh Credentials.  Verify that it is enabled and configured with an SPN appropriate for the target computer. For example, for a target computer name "m
yserver.domain.com", the SPN can be one of the following: WSMAN/myserver.domain.com or WSMAN/*.domain.com. For more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [], PSRemotingTransportException
    + FullyQualifiedErrorId : PSSessionOpenFailed

我检查了错误消息中提到的策略,但似乎一切正常。还有什么能阻止我呢?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18113651

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档