From the course: PowerShell for Exchange Administration

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Managing access permissions

Managing access permissions

(upbeat music) (upbeat music) (upbeat music) (upbeat music) - Let's take a look at managing mailbox permissions in Exchange using PowerShell. So the first thing is you'll either need to be inside of the Exchange Management Shell or have an Exchange PowerShell session open. And you can see here that I've got an Exchange PowerShell session open. So to retrieve the permissions on a mailbox, we use the Get-MailboxPermission cmdlet and give it the name of the mailbox. But you can see here that this output is rather verbose. And that's because the vast majority of this is what's inherited from the Exchange organization, so they're default permissions. And for the purposes of this snip, we're not going to care about that. So I'm going to use the where-object cmdlet to filter those out. And you can see here that the only non-inherited permission is the self identity, so it's what gives the mailbox access to itself. But there are no other permissions on this mailbox. So to add permission to…

Contents