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?