Skip to content

Sys_IsFirewallPortOpen

Checks if a port is open in Windows Firewall for the current network profile.

Sys_IsFirewallPortOpen(iPort) As Boolean

Port number

Result will be stored in gbValue: True if the port is open, otherwise False. gbValue is also False if Windows Firewall is disabled.

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

Scripting Guidelines

Sys_IsFirewallInstalled Sys_IsFirewallEnabled Constants Package Property Variables