I have a large number of remote IPs to specify in Windows Firewall for a blocking rule. The only way I know to enter them is by labouriously entering them an inbound rule's properties Scope tab.
Is there a more efficient way such as a command line option or, even better, pointing to a text file containing the IPs/IP masks?
I'm on Windows Server 2008
Best Answer
Assuming the IP addresses are in a text file called "ip.txt", just do:
In a batch file, be sure to change "%i" to "%%i".