Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Configure the firewall rule using powershell 2.0

$
0
0

I am using windows powershell 2.0 to create a new firewall rule. I can create the outbound firewall rule by using this command :-

netsh advfirewall firewall add rule name="allow traffic" protocol=TCP dir=out localport=1023  action=block

but i am not able to configure this rule.

Basically, I need to go to Scope -- Remote IP Address -- Add these Ip ranges from "9.0.0.12" to "9.0.255.255". I have 12 ranges to be added to that rule.

I know it can be done using powershell 3.0, but how do i do it using powershell 2.0?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>