Quantcast
Channel: Microsoft Office 365
Viewing all articles
Browse latest Browse all 17713

Shared Mailboxes - Office365

$
0
0

Hi all

I'm working on a script that should remove a specific user from all shared mailboxes in Office 365.

So far I have created this:

foreach ($Alias in Get-Mailbox -RecipientTypeDetails SharedMailbox) {

Remove-MailboxPermission -Identity $Alias -User "User@doamin.dk" -AccessRights FullAccess

}

But i'm getting an error.

Cannot process argument transformation on parameter 'Identity'.

Any of you guys that can help me out.

Best Regards

Chris


Viewing all articles
Browse latest Browse all 17713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>