< Back

Assert-CFirewallConfigurable

Sun Jan 12, 2020 8:56 pm

NAME Assert-CFirewallConfigurable



SYNOPSIS

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





SYNTAX

Assert-CFirewallConfigurable [<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`.





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Assert-CFirewallConfigurable



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











RELATED LINKS