Firewall.Enable
Skip to content
mnscript
StringResult Firewall.Enable() 

Description ​

Enables the firewall your terminal.

Returns ​

StringResult - StringResult representing the success or failure of this operation

Example ​

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

//Request Admin Perms
Application.RequestAdminPrivilege();

StringResult enable = Firewall.Enable();

if ( enable.GetResult() ) {
    Console.WriteLine("Firewall Enabled");
} else {
    Console.WriteLine("Error: "..enable.GetString());    
}