Benutzer "Admin@Account.onmicrosoft.com" mit M365 Exchange verbinden:
Code: Alles auswählen
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName Admin@Account.onmicrosoft.com
Code: Alles auswählen
Remove-MailboxPermission -Identity 'shardedMailbox@domain.de' -User 'user1@domain.de' -AccessRights FullAccess
Add-MailboxPermission -Identity 'shardedMailbox@domain.de' -User 'user1@domain.de' -AccessRights FullAccess -AutoMapping:$false
Code: Alles auswählen
Get-PublicFolder -Identity "\Ordnername" -Recurse | Add-PublicFolderClientPermission -User "Vorname Nachname" -AccessRights Owner