PS Remoting issue

Dustin Saunders
Dustin Saunders used Ask the Experts™
on
I'm trying to establish a PSSession to a remote server in DMZ (not on the domain).  However, I can't seem to get connected.  

I've set trusted hosts, verified WinRM running, and firewall rules allowed.  Any ideas?

New-PSSession : [WW2WS101] Connecting to remote server WW2WS101 failed with the following error message : The client cannot connect to the destination 
specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and documentation for the 
WS-Management service running on the destination, most commonly IIS or WinRM. If the destination is the WinRM service, run the following command on the 
destination to analyze and configure the WinRM service: "winrm quickconfig". For more information, see the about_Remote_Troubleshooting Help topic.
At \\dm3us001\Scripts\@migration\SUI\updateWebApplications.ps1:14 char:15

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2014
Commented:
Given the error message, and that it's in a DMZ, I would still suspect firewalls.  I would run a network capture on the machine in the DMZ to see if it is receiving traffic on TCP 5985 (assuming that's what you're using) when you try to establish a connection.
Dustin SaundersCo-Founder and Chief Architect
Top Expert 2016

Author

Commented:
Ended up being my mistake, in the firewall (which is all linux cmd line) I mistakenly had swapped the interface number on the pass in/out rules.

Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial