2017-10-13 62 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不是域用戶, - 它會失敗。