Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.



Windows 7: may i know the firewall command line to block a program?

19 Sep 2013   #1

windows 7 ultimate 64bit
 
 
may i know the firewall command line to block a program?

Hi

may i know the firewall command line to block a program in and out?


i did a search a lot ,but i need only the command line to block a program

thanks

My System SpecsSystem Spec
.

19 Sep 2013   #2

windows 7 professional 32bit
 
 

netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes
My System SpecsSystem Spec
19 Sep 2013   #3

windows 7 ultimate 64bit
 
 

Quote   Quote: Originally Posted by Armoth View Post
netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes
but i want to block in and out not a alow
My System SpecsSystem Spec
.


19 Sep 2013   #4

windows 7 professional 32bit
 
 

change the allow to a deny
My System SpecsSystem Spec
19 Sep 2013   #5

windows 7 professional 32bit
 
 

netsh advfirewall firewall add rule name="Block skype" dir=in action=deny program="C:\program\skype.exe" enable=yes
My System SpecsSystem Spec
21 Sep 2013   #6

windows 7 ultimate 64bit
 
 

Quote   Quote: Originally Posted by Armoth View Post
netsh advfirewall firewall add rule name="Block skype" dir=in action=deny program="C:\program\skype.exe" enable=yes
thanks mate
My System SpecsSystem Spec
Reply

 may i know the firewall command line to block a program?





Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:42 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33