locked
Add firewall exception RRS feed

  • Question

  • How can I add my application to firewall exception list on all operating systems (Windows XP, Vista, 7)?
    Saturday, November 27, 2010 9:32 PM

Answers

  • You can use NetSh.exe to do this

    On Vista+:  NetSh.exe AdvFirewall Firewall Add Rule Name="MyApp"  Dir=in Program="C:\Program Files\MyApp.exe"

    Hope this helps,

     


    Dusty Harper [MSFT]
    Microsoft Corporation
    ------------------------------------------------------------
    This posting is provided "AS IS", with NO warranties and confers NO rights
    ------------------------------------------------------------
    Saturday, November 27, 2010 10:06 PM
    Moderator