共用方式為


Remove-MsolContact

從 Azure Active Directory 移除連絡人。

語法

Remove-MsolContact
      -ObjectId <Guid>
      [-Force]
      [-TenantId <Guid>]
      [<CommonParameters>]

Description

Remove-MsolContact Cmdlet 會從 Azure Active Directory 刪除聯繫人。

範例

範例 1:移除聯繫人

PS C:\> Remove-MsolContact -ObjectId 40c4ca1a-4e15-40ad-b0bd-abeca4bcafcd -Force

此命令會從 Azure Active Directory 移除連絡人。

參數

-Force

指出此 Cmdlet 不會提示您進行確認。

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

-ObjectId

指定要移除之聯繫人的唯一標識碼。

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

-TenantId

指定要在其中執行作業之租使用者的唯一標識符。 預設值為目前使用者的租使用者。 此參數僅適用於合作夥伴使用者。

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