Sitemap
Cygnetix

Cygnetix

Breaking Powershell Remoting

2 min readOct 20, 2015

--

Just a quick post to cover a problem that I’d manage to introduce for myself today.

Symptoms:

At some point today I notice that I was no longer to run Enter-PSSession to remote in to servers. At first it was just the one server I tried, so I gave it a reboot but, after it was still not working I tried others and found them to have the same issue.

I asked a colleague if they had access and they confirmed they did so I started to suspect it was likely just my machine.

Get Cygnetix’s stories in your inbox

Join Medium for free to get updates from this writer.

The error I received is shown below:

Press enter or click to view image in full size
Error when attempting to connect via WinRM

Solution:

As it turns out, at some point in the day I had made changes to my machine’s proxy settings using the netsh command. This change resulted in all WinRM traffic being sent via the proxy, which makes sense given that it’s a web service.

The problematic settings can be seen below as well as the command to remove the setting and resolve the issue:

Reviewing proxy settings and removing the proxy configuration

--

--