Modifying full access permissions for multiple mailboxes from command line
I want to get20 mailboxes and modify them all to add a user to the full access list. Can I do them all at once? The GUI doesn't allow me to select more than1 mailbox at a time and make this type of change, but I was hopeing through powershell I could.For example, I know I can get-mailbox | add-mailboxpermissions, but I don't want to banket apply, I need to do it for 20 specific mailboxes.Thanks!
December 18th, 2009 1:55am

If you have the mailbox aliases in a file you should be able to do it like this untested exampleget-content alias.txt |foreach-object {Add-MailboxPermission -Identity $_ -AccessRights <Mailbox Rights[]>}Karlhttp://unlockpowershell.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
December 18th, 2009 2:36am

alias.txt has two alias in it.powershell command is get-content alias.txt |foreach-object {Add-MailboxPermission -Identity $_ -User $addusernamehere -AccessRights 'FullAccess'}
December 22nd, 2009 3:44am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics