New-PSSession
does not work when using the HostName of a server, but does with the IP. Both local and remote machines are on the same domain.
PS C:\Windows\system32> new-PSSession -ComputerName "SERVERNAME" new-PSSession : [SERVERNAME] Connecting to remote server SERVERNAME failed with the following error message : WinRM cannot process the request. The following error occurred while using Kerberos authentication: Cannot find the computer SERVERNAME. Verify that the computer exists on the network and that the name provided is spelled correctly. For more information, see the about_Remote_Troubleshooting Help topic.
I've also tried Ping, RDP and Test-WSMan
which are all successful using the servers Hostname.
Any ideas on what could be going wrong?
-credential
parameter: stackoverflow.com/q/30568727/2796058 – Mark Wragg