I thought this was going to be a no-brainer.  Guess not for me but maybe 
someone else.

Trying to get a list of mailboxes that have "AdPermission" given to a certain 
other account.

In this example I am looping through all Exchange 2007 Mailboxes and hoping to 
get any mailbox that has the account "Domain\Account" granted access to it.

The code does not fail, just returns nothing. I have manually added 
"Domain\Account" to one MailBox so I know one mailbox should return



get-mailbox -resultsize unlimited |get-adpermission | where { ($_.User -eq 
"Domain\Account")} |FT identity,user,accessrights

_______________________________________ 
Clint Kleciak
Infrastructure Engineer Mgr
CIGNA IT
[email protected] 
1-860-226-1386



------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2010 CIGNA
==============================================================================


---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe exchangelist

  • PW Query Kleciak, Clint D A7IT

Reply via email to