I have a clean up task to do with my Exchange 2003/07 environment. The set-up is as follows:
domain controllers - ( 2003, 2012, 2008)
Domain Function Level is: Windows Server 2003
Server 2003, Exchange 2007 Ent ru15
Co-existence
So some (1000 users) have a linked mailbox in one domain, for the cleanup in ADSI Edit I manually need to check these accounts to ensure msExchRecipientTypeDetails is equal to two, this is the setting for linked mailboxes.
Is it possible to search by get-domainuser for the attribute.
Secondly we have thousands of entries and I can't scroll to them. Does anyone know of a method to search for an object within ADSI if I cannot get a script to work.