Remote Posershell session tied to 1 IP address

rated by 0 users
This post has 0 Replies | 1 Follower

Not Ranked
Posts 1
grj Posted: 05-03-2012 8:36 AM

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:

httpStatus 404
errorCode 1168
extraErrorInfo1 Request was received on an address we are not accepting requests on

Page 1 of 1 (1 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.