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


  1. Posts : 476
    windows 7 ultimate 64bit
       #1

    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 Computer


  2. Posts : 25
    windows 7 professional 32bit
       #2

    netsh advfirewall firewall add rule name="My Application" dir=in action=allow program="C:\MyApp\MyApp.exe" enable=yes
      My Computer


  3. Posts : 476
    windows 7 ultimate 64bit
    Thread Starter
       #3

    Armoth said:
    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 Computer


  4. Posts : 25
    windows 7 professional 32bit
       #4

    change the allow to a deny
      My Computer


  5. Posts : 25
    windows 7 professional 32bit
       #5

    netsh advfirewall firewall add rule name="Block skype" dir=in action=deny program="C:\program\skype.exe" enable=yes
      My Computer


  6. Posts : 476
    windows 7 ultimate 64bit
    Thread Starter
       #6

    Armoth said:
    netsh advfirewall firewall add rule name="Block skype" dir=in action=deny program="C:\program\skype.exe" enable=yes
    thanks mate
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 17:52.
Find Us