Avatar of arthurh88
arthurh88
 asked on

How to command-modify my firewall rule? Win 2008 Adv Firewall

Advanced Firewall on Windows 2008 R2 server

GIven my firewall rule:  BlockSpammers

How can I add an IP address to the scope via a command line, script, etc...other than going into the GUI?

I see no way to modify a rule with netsh advfirewall.   Can someone post me an example of modifying a FW rule (adding an IP to its scope) using a script?

Thanks!
Windows Server 2008Windows NetworkingSoftware Firewalls

Avatar of undefined
Last Comment
Ben Conner

8/22/2022 - Mon
barrykfl

arthurh88

ASKER
but i already mentioned netsh in my question.  i can find no example of netsh to add an IP to the scope of an existing rule.  do you have an example?
ASKER CERTIFIED SOLUTION
ChiefIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ben Conner

While this has already been closed, can anyone provide a sample netsh command requested by the original poster?  There are other reasons one might want this capability.

Thanks!

--Ben
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23