Skip to content

Sys_IsFirewallEnabled

Checks if Windows Firewall is enabled for the network profile that is currently active on the computer.

Sys_IsFirewallEnabled() As Boolean

Result will be stored in gbValue: True if Windows Firewall is enabled, otherwise False.

If bStatus Then bStatus = Sys_IsFirewallEnabled()
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

Sys_IsFirewallInstalled Sys_IsFirewallPortOpen Constants Package Property Variables