rzander / sccmclictr

Client Center for Configuration Manager
Microsoft Public License
321 stars 59 forks source link

Unable to connect to computers on VPN #121

Closed SeT911 closed 4 years ago

SeT911 commented 5 years ago

Hello, I have issues to connect to remote computers on vpn. I was allow port 5985 and can do a telnet connection.

But when try via Client Center i get this error message: Connecting to remote server 192.168.1.130 failed with the following error message : The WinRM client sent a request to an HTTP server and got a response saying the requested HTTP URL was not available. This is usually returned by a HTTP server that does not support the WS-Management protocol. For more information, see the about_Remote_Troubleshooting Help topic.

Issue is not present when computers are on LAN connection and im able to connect.

What i miss ? Thanks.

rzander commented 5 years ago

WinRM does not allow to connect an IP-Address. https://stackoverflow.com/questions/6587426/powershell-remoting-with-ip-address-as-target

You have to add your IP to TrustedHosts in WinRM or trust everything: winrm set winrm/config/client @{TrustedHosts="*"}