@@ -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
6969This 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
7878This 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
8787This 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
9696This 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
105105This 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
114114This command gets all IP address audit events for a username, between a start date and an end date.
0 commit comments