This is the built-in help made by Microsoft for the command 'Get-NetFirewallSetting', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Retrieves the global firewall settings of the target computer.
Get-NetFirewallSetting [-All] [-AsJob] [-CimSession <CimSession>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [<CommonParameters>]
The Get-NetFirewallSetting cmdlet retrieves the global firewall settings of the target computer. The NetFirewallSetting object specifies properties that apply to the
firewall and IPsec settings, no matter which network profile is currently in use. The global configurations include viewing the active profile, exemptions, specified
certification validation levels, and user and computer authorization lists.
To view enforced settings, view the firewall settings from the ActiveStore policy store source.
Online Version: http://go.microsoft.com/fwlink/?LinkId=285414
This example gets the global firewall settings on the local computer.
PS C:\>Get-NetFirewallSetting –PolicyStore corp.contoso.com/gpo_name | Set-NetFirewallSetting -Exemptions RouterDiscovery
This example modifies the global firewall settings of a particular GPO policy store. Running this cmdlet without specifying the policy store retrieves the persistent store.