+ Post New Thread
Results 1 to 6 of 6
Enterprise Software Thread, Exchange Command to add Group to Mailbox in Technical; Hello All I have a Windows Security group which I want to add to all membes on my exchange server ...
  1. #1

    Join Date
    Jan 2009
    Location
    Essex / Macclesfield
    Posts
    271
    Thank Post
    28
    Thanked 8 Times in 6 Posts
    Rep Power
    12

    Exchange Command to add Group to Mailbox

    Hello All

    I have a Windows Security group which I want to add to all membes on my exchange server I.E give the group full controle over the users mailbox so anyone who is then placed in this group can view that uses mailbox.

    I am doing this on bulk and have used the below script

    Get-Mailbox | Where { $_.OrganizationalUnit -eq “test.internal/test High School - Users/teaching staff” } | Add-MailboxPermission -User "access all staff mailboxes" -AccessRights Fullaccess -InheritanceType all

    This script dosnt give any errors when it runs, and looks like its finished. But when I then go and view the users Manage full acces permissions the group access all staff mailboxes isnt listed.

    Yes if I use this script

    Add-MailboxPermission -Identity "user1" -User "Access all staff mailboxes" -AccessRights Fullaccess -InheritanceType all

    it works and adds the group.

    am in missing something here??

    TIA

  2. #2


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,120
    Thank Post
    203
    Thanked 2,385 Times in 1,765 Posts
    Rep Power
    703
    Quote Originally Posted by IKWeb View Post
    This script doesn't give any errors when it runs, and looks like it's finished. But when I then go and view the users Manage full acces permissions the group access all staff mailboxes isnt listed.
    Did you wait a couple of hours for the Information Store service to refresh its mailbox configuration cache?

  3. #3

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    114
    Possibly stating the obvious, but does running the first part (below) list any mailboxes?

    Get-Mailbox | Where { $_.OrganizationalUnit -eq “test.internal/test High School - Users/teaching staff” }

  4. #4

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    2,137
    Thank Post
    1
    Thanked 326 Times in 316 Posts
    Rep Power
    76
    1. Running the script will only work once, unless you schedule it, maybe if you have your staff on 1 DB, grant access at the DB level that way any new mailboxes created will have this permission applied to them. Something like the below.

    Get-MailboxDatabase -identity “[mailbox database name]” | Add-ADPermission -user [username] -AccessRights GenericAll

  5. Thanks to sukh from:

    IKWeb (7th September 2011)

  6. #5

    Join Date
    Jan 2009
    Location
    Essex / Macclesfield
    Posts
    271
    Thank Post
    28
    Thanked 8 Times in 6 Posts
    Rep Power
    12
    Hello All

    Sorry for the late reply. Been mad with all the kids back from holiday.

    The script from Sukh worked a treat :-) what kinda of file ext would I need to give it if I wanted to create this as a sched task?

    Thanks again!!

  7. #6

    Join Date
    Dec 2008
    Location
    Essex
    Posts
    2,137
    Thank Post
    1
    Thanked 326 Times in 316 Posts
    Rep Power
    76
    Quote Originally Posted by IKWeb View Post
    Hello All

    Sorry for the late reply. Been mad with all the kids back from holiday.

    The script from Sukh worked a treat :-) what kinda of file ext would I need to give it if I wanted to create this as a sched task?

    Thanks again!!
    1. You shouldnt have to, it;s applied at that database level so any new mailboxes created on that database will inherit the permission.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 15
    Last Post: 18th June 2013, 11:55 AM
  2. Exchange server to cater for 4 networks accross 2 sites!
    By Jimbo in forum How do you do....it?
    Replies: 10
    Last Post: 28th June 2007, 06:17 PM
  3. Replies: 1
    Last Post: 17th February 2007, 05:28 PM
  4. Migrating Exchange 2003 to new hardware.....
    By ChrisH in forum Wireless Networks
    Replies: 7
    Last Post: 5th December 2005, 11:31 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •