I am using a script to set firewall rules in netsh.
netsh.exe advfirewall firewall set rule name="Block External IP's" new remoteip="$($ipArray)"
I thought that set was used so that it would append the rule rather than replace it. However, it wrote over the previous ip's in the list and replaced it with the very last ip in the array. How can I rewrite this so that it adds to the rules rather than replaces them? Thank you so much for your time and help.