Jump to content

Recommended Posts

Posted

So I have migrated over to office365 and first thing I spotted was I was no longer able to open other peoples mailbox's in OWA, after a bit or research I found this powershell script:

 

 

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Admin')} | Add-MailboxPermission -User [b][i][email protected][/i][/b] -AccessRights fullaccess -InheritanceType all

 

seemed to work great, I could now access peoples mailbox's through my own OWA account

 

When I then tried to open my outlook client 2016 its just stuck on loading profile, finally got in running only to see that every single mailbox is now on my left hand column of outlook as an additional account, this causes my outlook desktop app to crash

 

I have tried to reverse the script with :

 

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox') -and (Alias -ne 'Admin')} | Remove-MailboxPermission -User [b][i][email protected][/i][/b] -AccessRights fullaccess -InheritanceType all

 

however it seems to do very little in terms of completing successfully

 

Can anyone suggest a way of removing additional mailboxs from my outlook 2016 client? have tried removing profile its loads fine first time but then tries to load all the mailboxs again second time

Posted

Your remove line doesn't need the inheritance part I think, and in terms of when you add them again use -Automapping $false to stop them automapping in outlook :p (remember permissions take time to sync too, running the remove won't instantly make it stop mapping. You can run another powershell command to check the current permissions on a single one to see if it's removed it)

 

Steve

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...