Set-FGTFirewallPolicy change -status enable / disable #270
Closed
gitTerracide
started this conversation in
General
Replies: 2 comments
-
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
|
Beta Was this translation helpful? Give feedback.
0 replies
-
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! :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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!
Beta Was this translation helpful? Give feedback.
All reactions