-
Notifications
You must be signed in to change notification settings - Fork 33
Function Firewall
Mark Wragg edited this page Jun 17, 2019
·
1 revision
Test firewall rule settings.
Use to determine if the specified firewall rule has the desired setting.
The name of the firewall rule to be tested, as matched via DisplayName property.
[Parameter(Mandatory, Position=1, ParameterSetName="Default")]
[Parameter(Mandatory, Position=1, ParameterSetName="Property")]
[Alias("Path")]
The name of the property of the firewall rule to be tested.
[Parameter(Position=2, ParameterSetName="Property")]
A Script Block defining a Pester Assertion.
[Parameter(Mandatory, Position=2, ParameterSetName="Default")]
[Parameter(Mandatory, Position=3, ParameterSetName="Property")]
Assertions: -Be
Firewall putty.exe Enabled { Should -Be "$True" }
Firewall putty.exe Action { Should -Be 'Allow' }
Firewall putty.exe Private { Should -Be 'Public' }
Getting Started
Contributing
Functions