i can't ping a computer but remoting into it works (powershell enter-pssession)

1.1k Views Asked by At


i have a rather basic Question:
I was setting up a Test-Computer (WinServer2k12) outside of my Domain-network but in the same subnet.
Ping via ip or name both failed (same with test-connection 123.11.23.2) - ... host could not be found...
... AND Rdp-Connection fails (mstsc /v: 123.21.23.2)
... BUT it IS possible to enter-pssession into it!! (etsn 123.21.23.2 -cred admin) I'm curious about it because i observed this behaviour in a win7/XP-Workgroup-Environment before. What technology ist enter-pssession using and (how) can i make use of it (e.g. when ping is failing).
Or am i thinking in the wrong direction?
Thanks in advance!

1

There are 1 best solutions below

3
On BEST ANSWER

It's just a firewall at destination PC blocking pings and RDP (if not enabled) and WSMAN port is open and listening. You should probably employ portqry check against WSMAN ports (TCP 5985, 5986 - the latter is WSMAN over HTTPS) and if that port is "Listening", try connecting via New-PSSession.