Solved

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

Posted on 2014-01-08
2
430 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
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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
In this video we show how to create a mailbox database 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 Servers >> Data…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

770 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