@@ -63,7 +63,7 @@ Narrow the search criteria to limit the results.
63
63
64
64
### Example 1: Get all IP address audit events
65
65
```
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
67
67
```
68
68
69
69
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
72
72
73
73
### Example 2: Get all IP address audit events for an end date and a start date
74
74
```
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
76
76
```
77
77
78
78
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
81
81
82
82
### Example 3: Get all IP address audit events, user events, and logon events for an end date and a start date
83
83
```
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
85
85
```
86
86
87
87
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
90
90
91
91
### Example 4: Get all IP address audit events by MAC address
92
92
```
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
94
94
```
95
95
96
96
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
99
99
100
100
### Example 5: Get all IP address audit events by hostname
101
101
```
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
103
103
```
104
104
105
105
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
108
108
109
109
### Example 6: Get all IP address audit events by username
110
110
```
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
112
112
```
113
113
114
114
This command gets all IP address audit events for a username, between a start date and an end date.
0 commit comments