【发布时间】:2017-10-13 16:18:27
【问题描述】:
我试图在同一个域中的两个 Windows 2016 服务器之间创建一个 PSSESSION。 PSremoting 已启用并且 Test-Wsman 工作正常。 我想使用 -credentials 参数提供的目标机器的本地管理员帐户进入目标机器上的远程会话。但如果我使用域帐户,它就可以工作。 所以:
New-PSSession Targetmachine -Credential <credentials from domain\MemberOfLocalAdminGroup>
工作很好,但是
New-PSSession Targetmachine -Credential <credentials from targetmachine\localadmin>
没有。为什么?
后者导致错误:Connecting to remote server xxxxxxx failed with the following error message : WinRM cannot process the request. The following error with errorcode 0x8009030e occurred while using Kerberos authentication: There are currently no logon servers available to service the logon request.
【问题讨论】:
-
很可能是 GPO 造成的
标签: powershell powershell-remoting winrm