Created
March 4, 2016 13:27
-
-
Save itpropro/b983f2e61aa801a14802 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ips = @() | |
foreach ($i in 1..254) | |
{ | |
$ips += "192.168.0.$i" | |
} | |
New-NetFirewallRule -Protocol TCP –LocalPort 3389 -Profile Public -DisplayName 'RDP VPN S2S' -Direction Inbound -Action Allow -RemoteAddress $ips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment