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
drugo

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
Armoth

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
drugo

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
Armoth

windows 7 professional 32bit
 
 

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

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
drugo

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




Similar help and support threads
Thread Forum
Associate different default program with ext for command line only
In Windows I have Scite (a text editor) set as the default program to open .pl files. That's fine when using explorer. But on the command line I would like to have a different program open .pl files. So basically, different defaults for explorer and cmd. How would I do this?
Software
Executing command line command anywhere ?
I want to create a setup whereas a command line command can be run from any directory/folder, without having to be in the directory/folder whereas the command line command resides ?
General Discussion
Windows firewall help allow all, block some
How does one make windows firewall allow everything to go through, but block specific exe's from having any outgoing/incoming connections?
System Security
"there was a problem sending a command line to program"
when i try to open my yahoo messenger account or a html doc. i get this pop up message: "there was a problem sending a command line to program". any suggestions? thanks
General Discussion
How do i block firefox using windows firewall ?
Hi, Is there a way for me to block firefox from accessing internet using windows 7 firewall ? I've set inbound and outbound rules to block connection from all port, all ip address and all network type (public,home,work) but to no avail, firefox can still browse the internet. I managed to block...
System Security


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 13:23.
Twitter Facebook Google+