Remove-EntraGroupOwner

グループから所有者を削除します。

構文

Default (既定)

Remove-EntraGroupOwner

    -OwnerId <String>
    -GroupId <String>
    [<CommonParameters>]

説明

Remove-EntraGroupOwner コマンドレットは、Microsoft Entra IDのグループから所有者を削除します。 グループから所有者を削除する GroupIdOwnerId のパラメーターを指定します。

例 1: 所有者を削除する

Connect-Entra -Scopes 'Group.ReadWrite.All'
$group = Get-EntraGroup -Filter "DisplayName eq 'HelpDesk Team Leaders'"
$groupOwner = Get-EntraGroup -GroupId $group.Id | Get-EntraGroupOwner | Where-Object {$_.displayName -eq 'Adele Vance'}
Remove-EntraGroupOwner -GroupId $group.Id -OwnerId $groupOwner.Id

この例では、Microsoft Entra IDのグループから所有者を削除する方法を示します。

  • GroupId- Microsoft Entra IDのグループの ID を指定します。

  • OwnerId - 所有者の ID を指定します。

パラメーター

-GroupId

Microsoft Entra ID内のグループの ID を指定します。

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

型:System.String
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:オブジェクト識別子

パラメーター セット

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

-OwnerId

所有者の ID を指定します。

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

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

パラメーター セット

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

CommonParameters

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