Get-IpamConfigurationEvent

Get-IpamConfigurationEvent

Gets IPAM configuration events from the IPAM database.

構文

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

詳細説明

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.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-UserDomainName<String[]>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

-UserName<String[]>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

True (ByPropertyName)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • IpamConfigurationEvent

    Represents a configuration event for the IPAM server.

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"

関連トピック

Remove-IpamConfigurationEvent