?
Solved

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

Posted on 2014-01-08
2
Medium Priority
?
461 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 1500 total points
ID: 39765762
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
ID: 39765781
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

A Cyber Security RX to Protect Your Organization

Join us on December 13th for a webinar to learn how medical providers can defend against malware with a cyber security "Rx" that supports a healthy technology adoption plan for every healthcare organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

839 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