Get-IpamConfigurationEvent

Get-IpamConfigurationEvent

Gets IPAM configuration events from the IPAM database.

Syntax

Parameter Set: Query (cdxml)
Get-IpamConfigurationEvent [-AsJob] [-CimSession <CimSession[]> ] [-EndDate <DateTime> ] [-StartDate <DateTime> ] [-ThrottleLimit <Int32> ] [-UserDomainName <String[]> ] [-UserName <String[]> ] [ <CommonParameters>]

Detaillierte Beschreibung

The Get-IpamConfigurationEvent cmdlet gets IP Address Management (IPAM) configuration events from the IPAM database. If you do not specify any parameters, the cmdlet gets all configuration events for the IPAM server. You can specify the StartDate and EndDate to get configuration events that occur in a span of time. You can specify the UserDomainName parameter to filter configuration events that occur in a user domain. You can specify the UserName parameter to filter configuration changes made by a user.

Specify values for the StartDate and EndDate parameters in the time zone of the IPAM server. The cmdlet returns data that includes both the start date and end date. If you do not specify the StartDate parameter, the cmdlet uses the start date of the first IPAM configuration event in the IPAM database. If you do not specify the EndDate parameter, the cmdlet uses the date of the last available server configuration event in IPAM.

If there are more than 10,000 results for a command, the cmdlet returns only the first 10,000. The cmdlet warns that this is a partial result.

Parameter

-AsJob

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-CimSession<CimSession[]>

Führt das Cmdlet in einer Remotesitzung oder auf einem Remotecomputer aus. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, z. B. die Ausgabe eines Cmdlets New-CimSession oder Get-CimSession. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.

Aliasse

Session

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-EndDate<DateTime>

Specifies the end date as a DateTime object. The cmdlet gets configuration events through this date from the IPAM database. The cmdlet gets events from the start date through this date from the IPAM database. To obtain a DateTime object, use the Get-Date cmdlet and specify the date in DD/MM/YYYY format. For more information, type Get-Help Get-Date.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-StartDate<DateTime>

Specifies a start date as a DateTime object. The cmdlet gets configuration events from this date through the end date from the IPAM database. To obtain a DateTime object, use the Get-Date cmdlet and specify the date in DD/MM/YYYY format. For more information, type Get-Help Get-Date.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-ThrottleLimit<Int32>

Gibt die maximale Anzahl von gleichzeitigen Vorgängen an, die zum Ausführen dieses Cmdlets eingerichtet werden können. Wenn dieser Parameter ausgelassen oder der Wert 0 eingegeben wird, berechnet Windows PowerShell® einen optimalen Drosselungsgrenzwert für das Cmdlet basierend auf der Anzahl der CIM-Cmdlets, die auf dem Computer ausgeführt werden. Die Drosselungsgrenze gilt nur für das aktuelle Cmdlet und nicht für die Sitzung oder den Computer.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-UserDomainName<String[]>

Specifies an array of names of user domains. The cmdlet filters configuration events that occur in this user domain.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

-UserName<String[]>

Specifies an array of names of user names. The cmdlet gets configuration events made by these users.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

True (ByPropertyName)

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • IpamConfigurationEvent

    Represents a configuration event for the IPAM server.

Beispiele

Example 1: Get IPAM server configuration events for a span of time

This example gets all configuration events for the IPAM server in last 30 days.

The first command creates a DateTime object by using the Get-Date cmdlet, and then stores it in the $Today variable. By default, Get-Date creates the current date. For more information about Get-Date and DateTime objects, type Get-Help Get-Date.

The second command subtracts 30 days from the DateTime object stored in the $Today variable, and then stores the result in the $LastMonth variable.

The third command gets the configuration events for the IPAM server in the last 30 days.

PS C:\> $Today = Get-Date
PS C:\> $LastMonth = $Today.AddDays(-30)
PS C:\> Get-IpamConfigurationEvent -StartDate $LastMonth -EndDate $Today

Example 2: Get IPAM configuration events for a user

This example gets all configuration events for the IPAM server in last 30 days for a user.

The first command creates a DateTime object by using the Get-Date cmdlet, and then stores it in the $Today variable. By default, Get-Date creates the current date.

The second command subtracts 30 days from the DateTime object stored in the $Today variable, and then stores the result in the $LastMonth variable.

The third command gets the configuration events for the IPAM server in the last 30 days for the user named Administrator.

PS C:\> $Today = Get-Date
PS C:\>$LastMonth = $Today.AddDays(-30)
PS C:\>Get-IpamConfigurationEvent -StartDate $lastMonth -EndDate $Today -UserName "Administrator"

Example 3: Get IPAM configuration events for User from domain

This example gets all the configuration events for the IPAM server in last 30 days for a user from a specified the domain.

The first command creates a DateTime object by using the Get-Date cmdlet, and then stores it in the $Today variable. By default, Get-Date creates the current date.

The second command subtracts 30 days from the DateTime object stored in the $Today variable, and then stores the result in the $LastMonth variable.

The third command gets all the configuration events for the IPAM server in last 30 days for the user named Administrator from the domain named Contoso.com.

PS C:\> $Today = Get-Date
PS C:\>$LastMonth = $Today.AddDays(-30)
PS C:\>Get-IpamConfigurationEvent -StartDate $LastMonth -EndDate $Today -UserName "Administrator" -UserDomainName "Contoso.com"

Verwandte Themen

Remove-IpamConfigurationEvent