We have alot of shared mailboxes, and all these mailboxes sit on the same mailbox database. Some of the mailboxes have multiple users with full manage access given via exchange, but some of the mailboxes only have just one user with full manage access given via exchange. The purpose of the shared mailboxes was so that 2 or more users would be granted access and not just a single user. Is there a script or cmdlet available to assist me in getting all shared mailboxes on the shared mailbox db that has only one user with full manage access instead of 2 or more?
ExchangePowershell
Last Comment
timgreen7077
8/22/2022 - Mon
Chris Dent
You're going to have to help me out here, I know what you need to do, but I don't have Exchange so I can't just build the code for you.
First you need to identify all those shared mailboxes. Are the set-up as that type? If so, this should find them:
The next step is to get the permissions for each of those mailboxes. Start off with one of them, something you already know about, or just the first in the list. This will let us construct the filter which lets you find what you want.
So this is where I need your help. You are likely to find you get more than manually added users there. You may also see something like IsInherited in the result. Do you?
The goal is to get down to a list of permissions that have been explicitly assigned to that mailbox. If we can get that all we need do is count them to figure out whether or not you're interested in that mailbox or not.
Please let me know how you get on.
Chris
timgreen7077
ASKER
This is the script I attempt to use but it continues to give an error:
First you need to identify all those shared mailboxes. Are the set-up as that type? If so, this should find them:
Open in new window
The next step is to get the permissions for each of those mailboxes. Start off with one of them, something you already know about, or just the first in the list. This will let us construct the filter which lets you find what you want.Open in new window
So this is where I need your help. You are likely to find you get more than manually added users there. You may also see something like IsInherited in the result. Do you?The goal is to get down to a list of permissions that have been explicitly assigned to that mailbox. If we can get that all we need do is count them to figure out whether or not you're interested in that mailbox or not.
Please let me know how you get on.
Chris