I run:
New-PSSession -ComputerName dc1,dc2,dc3
dc2 gets a new PSSession while dc1 and dc3 each get this error:
“The WinRM client cannot process the request because the server name cannot be resolved. For more information, see the about_Remote_Troubleshooting Help topic.”
I have tried the following:
~ validated with nslookup; fully resolving dc1 and dc3
~ read about_Remote_Troubleshooting
~ read about_Remote_Requirements
~ re-run Enable-PSRemoting on both erroring dcs
~ validated port 5985 is LISTENING from my console (running under Administrator context)
What is causing WinRM failing to resolve the server name?
thank you
I tried the FQDN in the -ComputerName parameter and it created the sessions.
Looks like you have a name resolution problem. The NETBIOS name doesn’t work, so try to empty your cache with: nbtstat -R
If this doesn’t work, check the network category on your computer and/or the domain controllers with Get-NetConnectionProfile. This should be set to “DomainAuthenticated”.
If not, set them to DomainAuthenticated:
Set-NetConnectionProfile -InterfaceAlias 'Ethernet' -NetworkCategory DomainAuthenticated
After run Enable-PSRemoting again to create the appropiate firewall rules on the Windows Firewall.
Hi Richard,
I simply had to add the DNS name to the network adapters DNS suffix search list.
thanks