mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-12 13:27:23 +00:00
Update dynamic keyword object identifier in Windows Firewall documentation
This commit is contained in:
parent
b15c919aaa
commit
a6db0f3995
@ -90,7 +90,7 @@ The following are requirements for the FQDN feature:
|
|||||||
|
|
||||||
This section provides some examples how to manage dynamic keywords using Windows PowerShell. A few important things to consider when using dynamic keywords are:
|
This section provides some examples how to manage dynamic keywords using Windows PowerShell. A few important things to consider when using dynamic keywords are:
|
||||||
|
|
||||||
- All dynamic keyword objects must have a unique GUID identifier to represent them
|
- All dynamic keyword objects must have a unique identifier (GUID) to represent them
|
||||||
- A firewall rule can use dynamic keywords instead of explicitly defining IP addresses for its conditions
|
- A firewall rule can use dynamic keywords instead of explicitly defining IP addresses for its conditions
|
||||||
- A firewall rule can use both dynamic keywords and statically defined address ranges
|
- A firewall rule can use both dynamic keywords and statically defined address ranges
|
||||||
- A dynamic keyword object can be reused across multiple firewall rules
|
- A dynamic keyword object can be reused across multiple firewall rules
|
||||||
@ -104,7 +104,7 @@ This section provides some examples how to manage dynamic keywords using Windows
|
|||||||
Here's an example script to allow an FQDN from PowerShell. Replace the `$fqdn` variable value with the FQDN you wish to block (line #1):
|
Here's an example script to allow an FQDN from PowerShell. Replace the `$fqdn` variable value with the FQDN you wish to block (line #1):
|
||||||
|
|
||||||
```PowerShell
|
```PowerShell
|
||||||
|
$fqdn = 'contoso.com'
|
||||||
$id = '{' + (new-guid).ToString() + '}'
|
$id = '{' + (new-guid).ToString() + '}'
|
||||||
New-NetFirewallDynamicKeywordAddress -id $id -Keyword $fqdn -AutoResolve $true
|
New-NetFirewallDynamicKeywordAddress -id $id -Keyword $fqdn -AutoResolve $true
|
||||||
New-NetFirewallRule -DisplayName "allow $fqdn" -Action Allow -Direction Outbound -RemoteDynamicKeywordAddresses $id
|
New-NetFirewallRule -DisplayName "allow $fqdn" -Action Allow -Direction Outbound -RemoteDynamicKeywordAddresses $id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user