Remove-AzureADGroupOwner

從群組中移除擁有者。

語法

Remove-AzureADGroupOwner
      -ObjectId <String>
      -OwnerId <String>
      [-InformationAction <ActionPreference>]
      [-InformationVariable <String>]
      [<CommonParameters>]

Description

Remove-AzureADGroupOwner Cmdlet 會從 Azure Active Directory (AD) 中的群組中移除擁有者。

範例

範例 1:移除擁有者

PS C:\>Remove-AzureADGroupOwner -ObjectId "62438306-7c37-4638-a72d-0ee8d9217680" -OwnerId "0a1068c0-dbb6-4537-9db3-b48f3e31dd76"

參數

-InformationAction

指定此 Cmdlet 如何回應資訊事件。

此參數可接受的值為:

  • 繼續
  • 忽略
  • 詢問
  • SilentlyContinue
  • Stop
  • 暫止
類型:ActionPreference
別名:infa
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InformationVariable

指定資訊變數。

類型:String
別名:iv
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ObjectId

指定 Azure AD 中群組的識別碼。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-OwnerId

指定擁有者的標識碼。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

備註

請參閱 Remove-AzureADGroupOwner 至 Microsoft Graph PowerShell 的移轉指南。