Part 1:
1. Connect to Exchange Online
$UserCredential = get-credential
$Session = New-pssession-configurationname Microsoft.exchange-connectionuri https://partner.outlook.cn/ Powershell-liveid/-credential $UserCredential-authentication basic-allowredirection
Import-pssession $Session
2. Settings for individual mailboxes
Example: Set Zhangsan to have full access to Zhouwu's mailbox
Add-mailboxpermission-identity "Zhouwu"-user zhangsan-accessrights fullaccess-inheritancetype All
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M01/8C/8B/wKiom1hvTO2wjoNmAAAyhZDHqHs470.jpg "height=" "/>"
3. Settings for all mailboxes
Get-mailbox-resultsize unlimited-filter{(recipienttypedetails-eq ' Usermailbox ')-and (Alias-ne ' Zhangsan ')} | Add-mailboxpermission-user zhangsan-accessrights Fullaccess-inheritancetype All
Part 2:
Remove Mailbox Permissions
Remove-mailboxpermission This command for the removal of the mailbox permissions of the command, you just have the original plus permission add-mailboxpermission into remove-mailboxpermission can remove the permissions;
Specific reference Links: https://technet.microsoft.com/en-us/library/bb125153 (v=exchg.160). aspx
Set Full Control permissions on the Exchange Online user's mailbox