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
Block Firefox with Windows Firewall ?
Is there a way to block Firefox traffic to only 'Public Network' ?? I use OpenVPN and when it's connected it shows as an Unidentified network, Public network. I have managed to block my torrent client to only work when my VPN is active by using Win firewall and blocking it from Domain and Private...
Network & Sharing
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
Have Windows Firewall prompt you to allow or block??
is there a way to make windows firewall to prompt you to whether to block or allow all programs that want to connect to the internet (e.g. MS Word, pidgin, or skype) ? Thanks in advance.
System Security
Advanced Firewall Block All + Let IE & Firefox Through
Hi, I have blocked all outbound traffic in the advanced firewall window and have tried to make a rule to allow Internet Explorer and Firefox through but with no joy. I have looked through previous posts but couldnt find an answer. I have tried the Sphinx software but I donít...
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 05:21.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App