Im trying to create a PSSESSION between two Windows 2016 servers, both in the same domain. PSremoting is enabled and Test-Wsman works fine. I want to enter the remote session on target machine with a local admin-account of the target machine, provided by the -credentials parameter. But it just works if I use a domain account. So:
New-PSSession Targetmachine -Credential <credentials from domain\MemberOfLocalAdminGroup>
works fine, but
New-PSSession Targetmachine -Credential <credentials from targetmachine\localadmin>
does not.Why?
The latter results in an error: 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.