diff --git a/windows/win_firewall_rule.ps1 b/windows/win_firewall_rule.ps1 index 0b0a2cd54f9..8ef2d83aff6 100644 --- a/windows/win_firewall_rule.ps1 +++ b/windows/win_firewall_rule.ps1 @@ -246,13 +246,7 @@ foreach ($arg in $args){ }; $winprofile=Get-Attr $params "profile" "current"; -if (($winprofile -ne 'current') -or ($winprofile -ne 'domain') -or ($winprofile -ne 'standard') -or ($winprofile -ne 'all') ) { - $misArg+="Profile"; - $msg+=@("for the Profile parameter only the values 'current', 'domain', 'standard' or 'all' are allowed"); -} else { - - $fwsettings.Add("profile", $winprofile) -} +$fwsettings.Add("profile", $winprofile) if ($($($misArg|measure).count) -gt 0){ $result=New-Object psobject @{ diff --git a/windows/win_firewall_rule.py b/windows/win_firewall_rule.py index 295979b248f..ecdec5882cd 100644 --- a/windows/win_firewall_rule.py +++ b/windows/win_firewall_rule.py @@ -90,10 +90,10 @@ options: default: null required: false profile: - describtion: + description: - the profile this rule applies to - default: current - choices: ['current', 'domain', 'standard', 'all'] + default: null + required: false force: description: - Enforces the change if a rule with different values exists