Hello Peter I used the cmdlet get-mailbox | Add-MailboxPermission -Identity {$_.Name} -AccessRights FullAccess -User “testuser” And it worked fine giving me permission to all mailboxes. But now when i am trying to remove these permissions using: get-mailbox | Remove-MailboxPermission -Identity {$_.Name} -AccessRights FullAccess -User “testuser” It does not work. I am still able to open other user’s mailbox ad I still my SID in the EMC under “Manage Full Access Permission” Running Exchange server 2007 and I am in all the required admin groups – Exchange Recepient, Exchange Organization, Dns admin, Domain Administrators,etc.. Can you help me out here? Thanks
Hello, Does it work when you run the command Remove-MailboxPermission against one mailbox at a time ? Perhaps you can try leaving out the -Identity {$_.Name} part (The powershell cmdlets should do the mapping automatically) Peter
Ok I just tried for a single user mailbox through shell and I still see my SID in EMC for this mailbox. although I know it works if I remove my sid right off from EMC, as I had tried earlier.
And to add to the pain, while trying all cmdlets I know to fix the this issue, I now cannot access my mailbox. Something went wrong I guess. Any thoughts?
FYI, since I have been testing the permissions on my account itself, I just checked the “Send as Permission” for my mailbox and I do not see the NTAuthority/Self security principal in there but I do see it in the “Manage Full Access” option. Would this be related to the issue?
Hi Peter…Atleast the permission error is fixed now! I dont know if it was the command you asked me to try or maybe it just took a long time to update. but the SID is gone from all mailboxes. However i am not able to open my mailbox anymore, not throught Outlook or OWA . Any way I could track down what the issue is? Thanks.
mailbox permissions are just AD permissions, so sometimes you need to wait for AD to replicate before permissions are shown (I think you can specify a Domain Controller as a parameter when setting and retrieving permissions on an object, which should help in cases like this) Back to your problem : can you post the output of the current permissions now ?
Identity User AccessRights IsInherited Deny ——– —- ———— ———– —- Domain.com/StaffA… Domain\MYUSERNAME {FullAccess} False True Domain.com/StaffA… NT AUTHORITY\SELF {FullAccess, Rea… False False Domain.com/StaffA… Domain\MORPHEUS$ {ReadPermission} True False Domain.com/StaffA… Domain\Exchange Servers {FullAccess} True True Domain.com/StaffA… Domain\administrator {FullAccess} True True Domain.com/StaffA… Domain\Domain Admins {FullAccess} True True Domain.com/StaffA… Domain\Enterprise Ad… {FullAccess} True True Domain.com/StaffA… Domain\Exchange Orga… {FullAccess} True True Domain.com/StaffA… NT AUTHORITY\NETW… {ReadPermission} True False Domain.com/StaffA… Domain\Exchange Servers {FullAccess} True False Domain.com/StaffA… Domain\Exchange Publ… {ReadPermission} True False Domain.com/StaffA… Domain\administrator {FullAccess, Del… True False Domain.com/StaffA… Domain\Exchange Servers {ReadPermission} True False Domain.com/StaffA… Domain\Exchange Orga… {FullAccess, Del… True False Domain.com/StaffA… Domain\Exchange View… {ReadPermission} True False Domain.com/StaffA… Domain\Enterprise Ad… {FullAccess, Del… True False Domain.com/StaffA… Domain\Domain Admins {FullAccess, Del… True False
This is what I get when I try to login thru OWA Request Url: http://Domain.com:80/owa/Default.aspx User host address: xx.xxx.xxx.xx Exception Exception type: Microsoft.Exchange.Data.Storage.ConnectionFailedTransientException Exception message: Cannot open mailbox /o=MyDomainEXCHANGE1/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=myusername
Hey peterrr …this cmdlet fixed the issue : Get-MailboxPermission “mymailbox” | Remove-MailboxPermission -Identity ‘CN=My Full Name,OU=Parent OU,OU=Child OU,DC=xxx,DC=xxx’ -User ‘MyDomain\username’ -InheritanceType ‘All’ -AccessRights ‘FullAccess’ And FYI, in EMC under “Manage Send As” option there was no “NTAuthority/SELF” to be found for my mailbox…so I re-added this security principal as well. I really am not sure what went wrong. But thanks a lottt for your help man!!! you were great…
Hi Peter Thanks for your help yesterday. I have another quick one for you today. Do you know how I could view the list of members (through the shell) in the distribution groups created based on custom filters. I am trying to use this Get-Recipient -Filter command to view the list of members inside each group, so that I can copy & paste the members from there. Can you tell me how exactly I should be using this cmdlet? Thanks
You’re welcome ! With regards to the distribution list powershell command : $AllMembers = Get-DynamicDistributionGroup -Identity “My Dynamic Distribution List” Get-Recipient -Filter $AllMembers.RecipientFilter (copied from http://www.corelan.be:8800/index.php/2008/11/05/dynamic-distribution-lists-not-working-as-expected-0-recipients-during-mail-routing/) Hope this helps ! Peter
Thanks for the reply peter. Sorry I was away. I will try this and see how it goes, although I think that is the command I was trying. The “$AllMembers” should be the name of the specific distribution group for which I need to see the members, correct? since there are many different dynamic distribution groups on our exchange.
Hi Jasonthat, No, you need to specify the name of your Distribution list in conjunction with -Identity in the first command (in my example, it’s “My Dynamic Distribution List”)
Perfect. worked like a charm. You are cool dude! P.S. Not sure if it exists but any addition to the cmdlet that would make the email addresses come up along with the names?
sure – just use this as second command : Get-Recipient -Filter $AllMembers.RecipientFilter | FT DisplayName,PrimarySmtpAddress (or alternatively, run Get-Recipient -Filter $AllMembers.RecipientFilter | FL to get all details, allowing you to pick the fields you want to see)