Firewall.GetFirewallRules
Skip to content
mnscript
FirewallRules Firewall.GetFirewallRules() 

Description ​

Return the firewall rules of the terminal.

Returns ​

FirewallRules - FirewallRules class containing the firewall rules of the terminal.

Example ​

msc
using System;
using Console;
using Firewall;
using Application;
using Array;

//Request Admin Perms
Application.RequestAdminPrivilege();

FirewallRules rules = Firewall.GetFirewallRules();