Closed gitTerracide closed 2 months ago
Hi @gitTerracide
You can look help :-) (or doc) ! -status parameter is (powershell) bool
help set-fgtfirewallpolicy -example
[...]
-------------------------- EXAMPLE 4 --------------------------
PS > $MyFGTPolicy = Get-FGTFirewallPolicy -name MyFGTPolicy
PS C:\>$MyFGTPolicy | Set-FGTFirewallPolicy -status:$false
Change MyFGTPolicy to set status disable
[...]
You need to use for enable policy status
Get-FGTFirewallPolicy -name Public-NAT-443_443-Nginx | Set-FGTFirewallPolicy -status
and for disable policy status
Get-FGTFirewallPolicy -name Public-NAT-443_443-Nginx | Set-FGTFirewallPolicy -status:$false
Ahh thank you so much @alagoutte! really appreciate your answer and your assistance. This powershell capability is truly amazing. Wish I had found it sooner! :)
Hi :)
Thank you for this amazing work. It's so great.
I am trying to enable/disable firewall policy - to no avail. Is this not catered for or am I missing something? Would appreciate any insights please. Thanks in advance!