New-PSSession to localhost fails


I have a script that opens a remote session to the localhost.
I need this to install NuGet on some devices from within a logonscript.

Every time I try to run this I get the following error:

Running winrm quickconfig does not change anything…

Following is the output of winrm get winrm/config


Issue was someone had tampered with the firewall… Thanx for the help guys!

Basically the firewall GPO was blocking remote management


New-PSSession to localhost fails by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply