question

sysadminglns-5715 avatar image
0 Votes"
sysadminglns-5715 asked JennyYan-MSFT answered

Windows Admin Center WinRM not working over VPN

Hello all, I use Windows Admin Center often to manage my server (OS: Hyper-V Server) and workstations (Windows 10 PCs), and I have WinRM configured for all of them.

However, when I switch to VPN, I can access all my workstations fine, except my server, which returns a WinRM error:

WinRM cannot complete the operation. Verify that the specified computer name is valid, that the computer is accessible over the network, and that a firewall exception for the WinRM service is enabled and allows access from this computer.

I am puzzled as to why WinRM access to the workstations works over VPN, but not the server.

In Powershell, Test-NetConnection to the server over ports 5985 and 5986 works without VPN;
however when the VPN is turned on TcpTest works on 5986 but fails for 5985.

Test-NetConnection to the workstations over ports 5985 and 5986 works with and without VPN!

Now I'm not sure what to do with this information. Any pointers in the right direction would be appreciated!


windows-10-networkwindows-server-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JennyYan-MSFT avatar image
0 Votes"
JennyYan-MSFT answered

Hi,
1. Please verify the status of port 5985 when enabling VPN on the problematic server and check if it is occupied by other process.
netstat -ano | findstr "<port>"
tasklist /svc /FI "PID eq xxxx"

Reference link:
https://cordero.me/netstat-and-finding-processes-apps/
https://morgantechspace.com/2015/01/get-process-name-from-pid-using-command-prompt.html
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

2.Kindly check the firewall settings on the problematic server and compare between with and without VPN to see if any differences.

Hope this helps and please help to accept as Answer if the response is useful.

Thanks,
Jenny

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.