Disable-BluGenieAllFirewallRules
Disable-BluGenieAllFirewallRules
SYNOPSIS
Disable Firewall Rule(s)
SYNTAX
Disable-BluGenieAllFirewallRules [[-Force]] [[-Walkthrough]] [[-ReturnObject]] [[-OutUnEscapedJSON]] [<CommonParameters>]DESCRIPTION
Disable Firewall Rule(s) without removing them and backup the data to (HKEY_LOCAL_MACHINE\SOFTWARE\BluGenie\FirewallRules).
EXAMPLES
EXAMPLE 1
Command: Disable-BluGenieAllFirewallRulesDescription: Disable all ( Enabled ) Windows Firewall Rules
Notes: If the (HKEY_LOCAL_MACHINE\SOFTWARE\BluGenie\FirewallRules[DisabledFWRFlag]) key exists, the process will be skippedEXAMPLE 2
Command: Disable-BluGenieAllFirewallRules -ForceDescription: Forcefully disable all ( Enabled ) Windows Firewall Rules
Notes: This will bypass the (HKEY_LOCAL_MACHINE\SOFTWARE\BluGenie\FirewallRules[DisabledFWRFlag]) key.EXAMPLE 3
Command: Disable-BluGenieAllFirewallRules -HelpDescription: Call Help Information
Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal Get-Help will be called with the -Full parameterEXAMPLE 4
Command: Disable-BluGenieAllFirewallRules -WalkThroughDescription: Call Help Information
Notes: If Help / WalkThrough is setup as a parameter, this script will be called to setup the Dynamic Help Menu if not the normal Get-Help will be called with the -Full parameterEXAMPLE 5
Command: Disable-BluGenieAllFirewallRules -OutUnEscapedJSONDescription: Disable all ( Enabled ) Windows Firewall Rules.  Return Output as UnEscaped JSON
Notes:  The OutUnEscapedJSON is used to beatify the JSON return and not Escape any CharactersEXAMPLE 6
Command: Disable-BluGenieAllFirewallRules -ReturnObjectDescription: Disable all ( Enabled ) Windows Firewall Rules.  Return Output as Objects
Notes:  The ReturnObject is used to return a PowerShell Object.  Normal return data is a Hash Table.PARAMETERS
Force
-Force [<SwitchParameter>]
   Description: Force will override the default flag, which will allow the process to run even though the (HKEY_LOCAL_MACHINE\SOFTWARE\BluGenie\FirewallRules[DisabledFWRFlag]) key exists.
   Notes:  This will not remove the (HKEY_LOCAL_MACHINE\SOFTWARE\BluGenie\FirewallRules[DisabledFWRFlag]) flag.
   Alias:
   ValidateSet:
   
   Required?                    false
   Position?                    1
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  falseWalkthrough
-Walkthrough [<SwitchParameter>]
   Description:  Start the dynamic help menu system to help walk through the current command and all of the parameters
   Notes:  
   Alias: Help
   ValidateSet:
   
   Required?                    false
   Position?                    3
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  falseReturnObject
-ReturnObject [<SwitchParameter>]
   Description: Return information as an Object
   Notes: By default the data is returned as a Hash Table
   Alias: 
   ValidateSet:
   
   Required?                    false
   Position?                    4
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  falseOutUnEscapedJSON
-OutUnEscapedJSON [<SwitchParameter>]
   Description: Removed UnEsacped Char from the JSON information.
   Notes: This will beautify json and clean up the formatting.
   Alias: 
   ValidateSet:
   
   Required?                    false
   Position?                    5
   Default value                False
   Accept pipeline input?       false
   Accept wildcard characters?  falseCommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Last updated
