PowerShell Logo Small

Get-NetFirewallSetting



This is the built-in help made by Microsoft for the command 'Get-NetFirewallSetting', in PowerShell version 4 - as retrieved from Windows version 'Microsoft Windows 8.1 Enterprise' 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.

SYNOPSIS

Retrieves the global firewall settings of the target computer.

SYNTAX


Get-NetFirewallSetting [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=285414
Copy-NetFirewallRule
New-NetFirewallRule
Open-NetGpo
Save-NetGpo
Set-NetFirewallSetting
New-GPO

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Get-NetFirewallSetting



This example gets the global firewall settings on the local computer.




EXAMPLE 2

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.