Get-CMActiveDirectoryForest

Get-CMActiveDirectoryForest

Gets one or more Active Directory forest objects.

構文

Parameter Set: SearchByFQDN
Get-CMActiveDirectoryForest [-ForestFqdn <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMActiveDirectoryForest -Id <String[]> [ <CommonParameters>]

詳細説明

The Get-CMActiveDirectoryForest cmdlet gets one or more Active Directory forest objects in Microsoft System Center 2012 Configuration Manager. You can get an Active Directory forest object by ID or fully qualified domain name (FQDN).

パラメーター

-ForestFqdn<String>

Specifies the FQDN of a Configuration Manager object.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

-Id<String[]>

Specifies an array of IDs of Configuration Manager objects. You can find the identifier value in the ForestID property of an Active Directory forest.

エイリアス

ForestId

必須?

true

位置は?

named

既定値

なし

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

True (ByPropertyName)

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Get all Active Directory forest objects

This command gets all Active Directory forest objects.

PS C:\> Get-CMActiveDirectoryForest

Example 2: Get an Active Directory Forest object by ID

This command gets an Active Directory forest object that has the ID 16777217.

PS C:\> Get-CMActiveDirectoryForest -Id "16777217"

Example 3: Get Active Directory Forest by domain name

This command gets an Active Directory forest object that has the FQDN tsqa.contoso.com.

PS C:\> Get-CMActiveDirectoryForest -ForestFqdn "tsqa.contoso.com"

関連トピック

New-CMActiveDirectoryForest

Set-CMActiveDirectoryForest

Remove-CMActiveDirectoryForest