Add-MailboxPermission SF-Conference -AccessRights FullAccess -user admin1234(where SF-Conference is the mailbox to assign rights to, and admin1234 is the user who gets the rights)
And here's a one-liner that will do the same to all users in the Exchange organization:
Get-Mailbox | Add-MailboxPermission -AccessRights FullAccess -user admin1234
Thanks, that really came in handy. One question though. In your second example (which I'm not about to try), shouldn't admin1234 be changed to something else, since you are piping in the output of the Get-Mailbox cmdlet?
ReplyDeleteNo, that's the correct command. Get-Mailbox returns a collection of all mailboxes, which is piped to Add-MailboxPermission which adds the admin1234 user to each mailbox with full access.
ReplyDeleteWhen you use the Add-Permission (or most other Exchange powershell commands), the argument right after the command that does not have a switch has an implied switch of -identity, which is passed from the previous command when piping.
ReplyDelete