Get-EntraDomain

ドメインを取得します。

構文

GetQuery (既定)

Get-EntraDomain

    [-Property <String[]>]
    [<CommonParameters>]

GetById

Get-EntraDomain

    -Name <String>
    [-Property <String[]>]
    [<CommonParameters>]

説明

Get-EntraDomain コマンドレットは、Microsoft Entra IDでドメインを取得します。

職場または学校アカウントは、次のMicrosoft Entraロールの少なくとも 1 つに割り当てる必要があります。

  • ユーザー管理者
  • ヘルプデスク管理者
  • サービス サポート管理者
  • ディレクトリの読み手
  • アドホック ライセンス管理者
  • アプリケーション管理者
  • セキュリティリーダー
  • セキュリティ管理者
  • 特権ロール管理者
  • クラウド アプリケーション管理者

例 1: 作成されたドメインの一覧を取得する

Connect-Entra -Scopes 'Domain.Read.All'
Get-EntraDomain
Id          AuthenticationType AvailabilityStatus IsAdminManaged IsDefault IsInitial IsRoot IsVerified PasswordNotificationWindowInDays
--          ------------------ ------------------ -------------- --------- --------- ------ ---------- --------------------------------
test22.com  Managed                               True           False     False     False  False      13
test33.com  Managed                               True           False     False     False  False      15
test44.com  Managed                               True           False     False     False  False      17

このコマンドは、ドメインの一覧を取得します。

例 2: 特定のドメインを取得する

Connect-Entra -Scopes 'Domain.Read.All'
Get-EntraDomain -Name TEST22.com
Id          AuthenticationType AvailabilityStatus IsAdminManaged IsDefault IsInitial IsRoot IsVerified PasswordNotificationWindowInDays
--          ------------------ ------------------ -------------- --------- --------- ------ ---------- --------------------------------
test22.com  Managed                               True           False     False     False  False      13

このコマンドは、指定した名前のドメインを取得します。

パラメーター

-Name

ドメインの名前を指定します。

パラメーターのプロパティ

型:System.String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

GetById
配置:Named
必須:True
パイプラインからの値:True
プロパティ名別のパイプラインからの値:True
残りの引数からの値:False

-Property

返されるプロパティを指定します。

パラメーターのプロパティ

型:

System.String[]

規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:Select

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットでは、一般的なパラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable の各パラメーターがサポートされています。 詳細については、about_CommonParametersを参照してください。