教えて!HELPDESK      Excel     Word      Outlook      Power Point      Windows

 

Exchange PowerShell:フルアクセス を持つユーザーを削除(Remove-MailboxPermission)

 

 

 

 

▼Remove-MailboxPermission

→メールボックスに対しフルアクセス権を持つユーザーを削除します。

 

Exchange Onlineに接続

Connect-ExchangeOnline -UserPrincipalName AdminUser@xx.com

 

Aのメールボックスにフルアクセス権を持つBさんを削除

Remove-MailboxPermission -Identity A@x.com -User B@x.com -AccessRights FullAccess -InheritanceType All

【結果】

Confirm
Are you sure you want to perform this action?
アクセス権 "'FullAccess'" を持つユーザー "B@x.com" に対して、メールボックスのアクセス許可 Id
を削除しています: "A@x.com"
[Y] Yes [A] Yes to All [N] No [L] No to All [?] ヘルプ (既定値は "Y"):
→ Yを入力

 

※補足※ ユーザーを指定せずフルアクセス権を削除しようとするとユーザーを聞かれます

Remove-MailboxPermission -Identity A@x.com  -AccessRights FullAccess -InheritanceType All

cmdlet Remove-MailboxPermission at command pipeline position 1
Supply values for the following parameters:
User: ここにアクセス権を削除するユーザーを入力(B@x.com)

 

アクセス権 "'FullAccess'" を持つユーザー "B@x.com" に対して、メールボックスのアクセス許可 Id
を削除しています: "A@x.com"。
[Y] Yes [A] Yes to All [N] No [L] No to All [?] ヘルプ (既定値は "Y"): → Yを入力


 

 

 

教えて!HELPDESK      Excel     Word      Outlook      Power Point      Windows