Solved

need a powershell or adcmdlets script to remove automapped profiles from a mailbox

Posted on 2014-01-08
2
426 Views
Last Modified: 2014-01-12
hello, we have a mailbox that has hundreds of automapped profiles attached to it. is there a script we can run to remove all of these from that specific mailbox?

many thanks!

S.
0
Comment
Question by:siber1
2 Comments
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
Comment Utility
I think this will do what you want to.

$FixAutoMapping = Get-MailboxPermission sharedmailbox |where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false}
$FixAutoMapping | Remove-MailboxPermission
$FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $false}

Taken from here
http://technet.microsoft.com/en-us/library/hh529943%28v=exchg.141%29.aspx
0
 

Author Comment

by:siber1
Comment Utility
unfortunately, that only targets users that have full access to the shared mailbox.

what we need is a way to remove all of the automappings to that share mailbox. i.e. - all of the accounts that this shared mailbox has full access to.

right now, when we load an outlook profile with that service account, we get 100's of profiles mapped to it.

thx
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
transfer from exchange mails to gmail 10 62
Home folder in File server 8 38
Powershell 16 31
Email subject no showing 2 13
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now