Answered by:
How do I do this with NETSH?

Question
-
Answers
-
NetSh.exe AdvFirewall Firewall Add Rule Name="Block This" dir=in action=block enable=yes profile=any localip=1.0.0.1/2 remoteip=2.0.0.0/24
Hope this helps,
Dusty Harper [MSFT]
Microsoft Corporation
------------------------------------------------------------
This posting is provided "AS IS", with NO warranties and confers NO rights
------------------------------------------------------------- Proposed as answer by Dusty Harper [MSFT] Tuesday, November 8, 2011 9:47 PM
- Marked as answer by Miya YaoModerator Friday, November 11, 2011 6:10 AM
All replies
-
NetSh.exe AdvFirewall Firewall Add Rule Name="Block This" dir=in action=block enable=yes profile=any localip=1.0.0.1/2 remoteip=2.0.0.0/24
Hope this helps,
Dusty Harper [MSFT]
Microsoft Corporation
------------------------------------------------------------
This posting is provided "AS IS", with NO warranties and confers NO rights
------------------------------------------------------------- Proposed as answer by Dusty Harper [MSFT] Tuesday, November 8, 2011 9:47 PM
- Marked as answer by Miya YaoModerator Friday, November 11, 2011 6:10 AM
-
-
NetSh.exe AdvFirewall Firewall Add Rule Name="Block This" dir=in action=block enable=yes profile=any localip=1.0.0.1/2 remoteip=2.0.0.0/24
Hope this helps,
Dusty Harper [MSFT]
Microsoft Corporation
------------------------------------------------------------
This posting is provided "AS IS", with NO warranties and confers NO rights
------------------------------------------------------------
Yup, that works. Thanks, Dusty.
What about doing it in a non-permanent way?
- Vince