Assert-FirewallConfigurable

Asserts that the Windows firewall is configurable and writes an error if it isn't.

Syntax

Assert-FirewallConfigurable [<CommonParameters>]

Description

The Windows firewall can only be configured if it is running. This function checks test if it is running. If it isn't, it writes out an error and returns False. If it is running, it returns True.

Return Values

System.Boolean.

EXAMPLE 1

Assert-FirewallConfigurable

Returns True if the Windows firewall can be configured, False if it can't.