falahati / WindowsFirewallHelper

A class library to manage the Windows Firewall as well as adding your program to the Windows Firewall Exception list.
MIT License
276 stars 72 forks source link

Remote Machines #42

Closed SCLD-AFrey closed 3 years ago

SCLD-AFrey commented 4 years ago

Can you make this work on remote machines also? Or just local? I have searched and cannot figure out how to use on remote.

falahati commented 3 years ago

this feature is now part of the repo. To use it you have to create a direct instance of the FirewallWPA or FirewallLegacy with the machine name / IP of the device. You probably have to run the application as Domain Admin to be able to do so.

FirewallManager helper class automatically returns the local instance of the active firewall.