2017-10-13 60 views
1

我试图在两个Windows 2016服务器之间创建一个PSSESSION,这两个服务器都在同一个域中。 PSremoting已启用并且Test-Wsman正常工作。 我想通过-credentials参数提供的目标计算机的本地管理帐户在目标计算机上输入远程会话。但是,如果我使用域帐户,它就会起作用。 所以:Powershell只与域帐户的远程处理

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.

+0

最有可能的GPO将导致此 –

回答

0

尝试使用其他认证机制 - 要么BasicCredsspDigest

New-PSSession Targetmachine -Authentication <Basic | Credssp | Digest> -Credential <credentials from targetmachine\localadmin> 

默认Kerberos被使用,并且,由于targetmachine\localadmin不是域用户, - 它会失败。