Windows firewall
-
Hi,
i need a little help its about windows firewall rules and batch file script on windows server 2008
i have created a rule in windows firewall inbound connections to block unwanted ip addresses.
the normal way to block unwanted ip's i open the rule and go to the scope tab and add the ip I want to block.
Is there a way that I can update the rule I created using a batch file and text note? What I mean is updating the scope with new ip’s that will be in the note.
-
-
i did a test but it wont work i cant find the test ip i want it to be in the scope
-
So are you just looking for a way to use PowerShell to update the block list?
-
a bat file will be better
-
@inroute said in Windows firewall:
a bat file will be better
Ewww. But okay, so I had that right idea.
Servers don't have PS on them?
-
@scottalanmiller umm... well i think i have to do it manual
-
thanks all for trying to help
-
http://superuser.com/questions/694523/netsh-block-all-ip-addresses-in-a-text-file
Sounds like what you are trying to do.
-
@tiagom thanks i will check it now