?
Solved

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

Posted on 2014-01-08
2
Medium Priority
?
451 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

Here's a look at newsworthy articles and community happenings during the last month.
Let's recap what we learned from yesterday's Skyport Systems webinar.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

771 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