PowerShell Logo Small

Get-NetFirewallProfile



This is the built-in help made by Microsoft for the command 'Get-NetFirewallProfile', 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.

SYNOPSIS

Displays settings that apply to the per-profile configurations of the Windows Firewall with Advanced Security.

SYNTAX


Get-NetFirewallProfile [-All] [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [<CommonParameters>]
Get-NetFirewallProfile [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] -AssociatedNetIPsecRule <CimInstance>
[<CommonParameters>]
Get-NetFirewallProfile [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] -AssociatedNetIPsecMainModeRule
<CimInstance> [<CommonParameters>]
Get-NetFirewallProfile [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] -AssociatedNetFirewallRule <CimInstance>
[<CommonParameters>]
Get-NetFirewallProfile [-Name] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-GPOSession <String>] [-PolicyStore <String>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-NetFirewallProfile cmdlet displays the currently configured options for a specified profile. This cmdlet displays information that is presented on the Windows
Firewall with Advanced Security Properties page, with the tabs for Domain, Private, and Public profiles. The specified profile can be scoped to input rules.


To query for rules scoped to a profile, pipe the profile object into the corresponding cmdlet.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=285216
Get-NetFirewallRule
Get-NetIPSecRule
New-NetFirewallRule
New-NetIPSecRule
Set-NetFirewallProfile
Set-NetFirewallRule
Set-NetIPSecRule
New-GPO

REMARKS

<

Examples


Example 1

PS C:\>Get-NetFirewallProfile -PolicyStore ActiveStore



This example retrieves the active profile conditions on a per profile basis. Running this cmdlet without specifying the policy store retrieves the persistent store.




Example 2

PS C:\>Get-NetFirewallProfile -Name Public | Get-NetFirewallRule



This example retrieves all the firewall rules scoped to the public profile.