I want to tie down a remote powershell session so it will only accept connections from 1 server. Currently the enable-psremoting configures the listener to accept connections from all IP's which is not secure.
How do I change the listener to accept only connections from 1 IP? I have tried the following:
New-WSManInstance winrm/config/Listener -SelectorSet @{Address="IP:nnn.nnn.nnn.nnn";Transport="http"}
Then removing the * listener and restarting winRM but when I try to access the server from the server which has the IP address I specified I get the following in the eventlog: