Annie does but their "little" Shook
From: Campbell, Rob [mailto:rob_campb...@centraltechnology.net] Sent: Friday, September 03, 2010 3:29 PM To: MS-Exchange Admin Issues Subject: Anybody out there have Exchange 2007 or 2010 and mailboxes with orphan permissions? $mbxs = get-mailbox -resultsize unlimited foreach ($mbx in $mbxs){ $mbx_alias = (get-mailbox $mbx).alias foreach ($mbx_perm in (get-mailboxpermission $mbx |? {-not $_.isinherited})){ if ($mbx_perm.user.tostring() -like "S-1-5-21-*"){ remove-mailboxpermission -identity $mbx_alias -user $mbx_perm.user -accessrights $mbx_perm.accessrights -confirm:$false -whatif } } } ************************************************************************************************** Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. ************************************************************************************************** --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com> with the body: unsubscribe exchangelist --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe exchangelist