Test-FirewallStatefulFtp

Tests if the firewall's StatefulFtp setting is enabled.

Syntax

Test-FirewallStatefulFtp [<CommonParameters>]

Description

Returns True if the firewall's StatefulFtp setting is enabled, False otherwise.

If the firewall isn't configurable, writes an error and returns nothing, which will probably be interpreted by your script as False. Can't help you there. At least you'll get an error message.

Related Commands

Return Values

System.Boolean.

EXAMPLE 1

Test-FirewallStatefulFtp

Returns True if the firewall's StatefulFtp setting is enabled, False otherwise.