vnoctober Posted June 14, 2014 Share Posted June 14, 2014 I want to block an *.exe file in the Firewall. But I've only done manually. I want to do this using the command line for faster and share to my friends. Can someone help me? Quote Link to comment Share on other sites More sharing options...
H4rDw4rE Posted June 14, 2014 Share Posted June 14, 2014 (edited) Start from here:https://sites.google.com/site/mytools4000/home/allow-block-multiple-programs-through-windows-7-firewall/andhttp://techtorials.me/batch-files/windows-firewall/Nice tutorial which will provide you enough information how to achieve what you mentioned. Edited June 14, 2014 by H4rDw4rE® Quote Link to comment Share on other sites More sharing options...
khatulistiwa Posted June 14, 2014 Share Posted June 14, 2014 - Create a new rule to block it from the internet app on outbound firewall.- Create a shortcut, and this key input.to enable the rule.netsh advfirewall firewall set rule name = "NameOfFirewallRule" new enable = yesto disable the rule.netsh advfirewall firewall set rule name = "NameOfFirewallRule" new enable = nonote: replace NameOfFirewallRule with the name of the rule that had been made.- After a successful shortcut is created, you can change the shortcut icon.- Shortcuts that can be shared with your friend, as long as they make a name of his rule, must match exactly the name of the rule in its key shortcut.- Weaknesses in this way, you have to create 2 shortcuts (enable / disable the rule) to any rule, so if you want to create a shortcut for some rule, of course you have to create a shortcut that quite a lot.-For Windows 8, before the execution of the shortcut, must be run with the run as admin or settings in order to keep its shortcut run as admin though without having to run as admin in the right click (right click on the shortcut> properties> shortcut> advanced> tick run as admin > ok> ok) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.