Skip to content

Commit 5554ac6

Browse files
authored
Merge pull request #1362 from MicrosoftDocs/master
publish 09/26/2019
2 parents 10e6190 + cf85f41 commit 5554ac6

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

docset/windows/ipamserver/get-ipamipaddressauditevent.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ You can avoid this situation if you narrow the search criteria to limit the resu
6666
```
6767
PS C:\> $Today = Get-Date
6868
PS C:\> $LastMonth = $Today.AddDays(-30)
69-
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today
69+
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today
7070
```
7171

7272
The first command gets the current date and stores the result in the variable named $Today.
@@ -79,7 +79,7 @@ The command stores the results in the variable named $IpamIpAddressAuditEvents.
7979
```
8080
PS C:\> $Today = Get-Date
8181
PS C:\> $LastMonth = $Today.AddDays(-30)
82-
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -IpAddress 10.10.1.1
82+
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -IpAddress 10.10.1.1
8383
```
8484

8585
The first command gets the current date and stores the result in the variable named $Today.
@@ -91,7 +91,7 @@ This command searches only DHCP lease events.
9191
```
9292
PS C:\> $Today = Get-Date
9393
PS C:\> $LastMonth = $Today.AddDays(-30)
94-
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $lastMonth -EndDate $Today -IpAddress 10.10.1.1 -CorrelateLogonEvents
94+
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $lastMonth -EndDate $Today -IpAddress 10.10.1.1 -CorrelateLogonEvents
9595
```
9696

9797
The first command gets the current date and stores the result in the variable named $Today.
@@ -104,7 +104,7 @@ The command stores the results in the variable named $IpamIpAddressAuditEvents.
104104
```
105105
PS C:\> $Today = Get-Date
106106
PS C:\> $LastMonth = $Today.AddDays(-30)
107-
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -ClientId "AA:BB:CC:DD:EE:FF" -CorrelateLogonEvents
107+
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -ClientId "AA:BB:CC:DD:EE:FF" -CorrelateLogonEvents
108108
```
109109

110110
The first command gets the current date and stores the result in the variable named $Today.
@@ -117,7 +117,7 @@ The command then stores the results in the variable named $IpamIpAddressAuditEve
117117
```
118118
PS C:\> $Today = Get-Date
119119
PS C:\> $LastMonth = $Today.AddDays(-30)
120-
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -HostName "client1.contoso.com" -CorrelateLogonEvents
120+
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -HostName "client1.contoso.com" -CorrelateLogonEvents
121121
```
122122

123123
The first command gets the current date and stores the result in the variable named $Today.
@@ -130,7 +130,7 @@ The command stores the results in the variable named $IpamIpAddressAuditEvents.
130130
```
131131
PS C:\> $Today = Get-Date
132132
PS C:\> $LastMonth = $Today.AddDays(-30)
133-
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -HostName "client1.contoso.com"
133+
PS C:\> $IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -HostName "client1.contoso.com"
134134
```
135135

136136
The first command gets the current date and stores the result in the variable named $Today.

docset/windows/netsecurity/get-netfirewallportfilter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ This example gets the port properties of a particular firewall rule.
9292

9393
### Example 3
9494
```
95-
PS C:\>Get-FirewallRule -DisplayName "Play To streaming server" | Get-NetFirewallPortFilter | Set-NetFirewallPortFilter -LocalPort 10246
95+
PS C:\>Get-NetFirewallRule -DisplayName "Play To streaming server" | Get-NetFirewallPortFilter | Set-NetFirewallPortFilter -LocalPort 10246
9696
9797
9898
This task can alternatively be done with this cmdlet.

docset/winserver2012-ps/netsecurity/Get-NetFirewallPortFilter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ This example gets the port properties of a particular firewall rule.
8383

8484
### Example 3
8585
```
86-
PS C:\>Get-FirewallRule -DisplayName "Play To streaming server" | Get-NetFirewallPortFilter | Set-NetFirewallPortFilter -LocalPort 10246
86+
PS C:\>Get-NetFirewallRule -DisplayName "Play To streaming server" | Get-NetFirewallPortFilter | Set-NetFirewallPortFilter -LocalPort 10246
8787
8888
8989
This task can alternatively be done with this cmdlet.

docset/winserver2012r2-ps/ipamserver/Get-IpamIpAddressAuditEvent.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Narrow the search criteria to limit the results.
6363

6464
### Example 1: Get all IP address audit events
6565
```
66-
PS C:\> $Today = Get-DatePS C:\>$LastMonth = $Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today
66+
PS C:\> $Today = Get-DatePS C:\>$LastMonth = $Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today
6767
```
6868

6969
This command gets all IP address audit events between a start date and an end date.
@@ -72,7 +72,7 @@ The command stores the results in the variable named .**$IpamIpAddressAuditEvent
7272

7373
### Example 2: Get all IP address audit events for an end date and a start date
7474
```
75-
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -IpAddress 10.10.1.1
75+
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -IpAddress 10.10.1.1
7676
```
7777

7878
This command gets all IP address audit events for a given IP address, between a start date and an end date.
@@ -81,7 +81,7 @@ The command stores the results in the variable named **$IpamIpAddressAuditEvents
8181

8282
### Example 3: Get all IP address audit events, user events, and logon events for an end date and a start date
8383
```
84-
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $lastMonth -EndDate $today -IpAddress 10.10.1.1 -CorrelateLogonEvents
84+
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $lastMonth -EndDate $today -IpAddress 10.10.1.1 -CorrelateLogonEvents
8585
```
8686

8787
This command gets all IP address audit events for a given IP address, between a start date and an end date.
@@ -90,7 +90,7 @@ The command stores the results in the variable named **$IpamIpAddressAuditEvents
9090

9191
### Example 4: Get all IP address audit events by MAC address
9292
```
93-
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -ClientId "AA:BB:CC:DD:EE:FF" -CorrelateLogonEvents
93+
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -ClientId "AA:BB:CC:DD:EE:FF" -CorrelateLogonEvents
9494
```
9595

9696
This command gets all IP address audit events for a client ID, between a start date and an end date.
@@ -99,7 +99,7 @@ The command stores the results in the variable named **$IpamIpAddressAuditEvents
9999

100100
### Example 5: Get all IP address audit events by hostname
101101
```
102-
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -HostName client1.contoso.com -CorrelateLogonEvents
102+
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -HostName client1.contoso.com -CorrelateLogonEvents
103103
```
104104

105105
This command gets all IP address audit events for a given hostname, between a start date and an end date.
@@ -108,7 +108,7 @@ The command stores the results in the variable named **$IpamIpAddressAuditEvents
108108

109109
### Example 6: Get all IP address audit events by username
110110
```
111-
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAuditEvent -StartDate $LastMonth -EndDate $Today -HostName client1.contoso.com
111+
PS C:\> $Today = Get-DatePS C:\>$LastMonth=$Today.AddDays(-30)PS C:\>$IpamIpAddressAuditEvents = Get-IpamIpAddressAuditEvent -StartDate $LastMonth -EndDate $Today -HostName client1.contoso.com
112112
```
113113

114114
This command gets all IP address audit events for a username, between a start date and an end date.

docset/winserver2012r2-ps/netsecurity/Get-NetFirewallPortFilter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ This example gets the port properties of a particular firewall rule.
9191

9292
### Example 3
9393
```
94-
PS C:\>Get-FirewallRule -DisplayName "Play To streaming server" | Get-NetFirewallPortFilter | Set-NetFirewallPortFilter -LocalPort 10246
94+
PS C:\>Get-NetFirewallRule -DisplayName "Play To streaming server" | Get-NetFirewallPortFilter | Set-NetFirewallPortFilter -LocalPort 10246
9595
9696
9797
This task can alternatively be done with this cmdlet.

0 commit comments

Comments
 (0)