Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Accessing Exchange 5.5 hidden recipients with PowerShell ADSI

Reply
 
Old 07-21-2008   #1 (permalink)
Dan Roberts @ Kent State


 
 

Accessing Exchange 5.5 hidden recipients with PowerShell ADSI

Per Microsoft KB article 196850, you must use a specific Bind DN to connect
to an Exchange 5.5 server and view hidden recipients and deleted objects via
ADSI/LDAP. I've attempted to follow this guidance in PowerShell, but have
had very little luck. Any suggestion as to how this would be implemented in
the DirectoryServices.DirectorySearcher class?

Thanks,

Dan Roberts


My System SpecsSystem Spec
Old 07-22-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: Accessing Exchange 5.5 hidden recipients with PowerShell ADSI

Dan Roberts @ Kent State wrote:
Quote:

> Thanks for your response Marco.
>
> Made sense.. basically you're proposing that the special Bind DN only works
> when querying a specific object, and therefore won't work when running a
> search. I buy that. Unfortunately though it didn't work.
>
> Maybe I'm just not getting the syntax correct.
>
> I have $mailbox = new-object
> DirectoryServices.DirectoryEntry("LDAP://mailserver/cn=mailboxname,cn=Recipients,ou=orgunit,o=org,cn=admin", "domain\myusername", "mypassword")
>
> If I take the ",cn=admin" off the end, it works fine for visible mailboxes..
> but as soon as I put it back, it won't even see those.
>
> My account has Service Account Admin permissions at the root and ou level..
> so this should work. Back to the drawing board, I guess.
You also checked this?
http://support.microsoft.com/kb/185475/
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
IIS6 via ADSI with PowerShell PowerShell
Problem Viewing & Accessing Hidden Folders Vista file management
Can I Modify ADSI with Powershell??? PowerShell
Accessing Laptop Hidden Partition Vista General
Accessing hidden folders Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46