AliceGoodspeed
asked on
Problem with Active Directory queries
Hi,
I have been struggling with queries in AD users & computers. I have found an easy way to list every user that have OMA enabled (outlook mobile access). But I have disovered that this list is not complete. The string im using is "(objectCategory=user)(msE xchOmaAdmi nWirelessE nable=0)".
msExchOmaAdminWirelessEnab le: 0 (is for Wireless enabled users; all the 3 features in the Exchange-Features tab).
I have found a couple of users that have all 3 features in the tab but they still dont appear in the search list. Is there anything wrong with my search string? Please help me out, this is frustrating. Btw, this is an 2003 environment.
Best regards, Alice
I have been struggling with queries in AD users & computers. I have found an easy way to list every user that have OMA enabled (outlook mobile access). But I have disovered that this list is not complete. The string im using is "(objectCategory=user)(msE
msExchOmaAdminWirelessEnab
I have found a couple of users that have all 3 features in the tab but they still dont appear in the search list. Is there anything wrong with my search string? Please help me out, this is frustrating. Btw, this is an 2003 environment.
Best regards, Alice
Your search doesn't account for the default value, all three enabled. If no one has changed that msExchOmaAdminWirelessEnab
This is a full set of filters which can be used with that attribute.
All Enabled
(&(objectClass=user)(objec
!msExchAdminWirelessEnable
And just in case, these are the rest of the possible filters.
Outlook Mobile Access Only:
(&(objectClass=user)(objec
User Initiated Synchronisation Only:
(&(objectClass=user)(objec
User Initiated and Up-To-Date Notifications Only:
(&(objectClass=user)(objec
Everything Disabled:
(&(objectClass=user)(objec
HTH
Chris
ASKER
Thanks Chris,
I'm almost there. Because now I get everything, even those that dont have an Exchange account aswell. Is there somehow to filter them out with the script?
I'm almost there. Because now I get everything, even those that dont have an Exchange account aswell. Is there somehow to filter them out with the script?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have modified the search and came up with this result.
(&(objectClass=user)(mail= *)(|(!msEx chOmaAdmin WirelessEn able=*)(ms ExchOmaAdm inWireless Enable=0)) )
IT is working perfect now. Thanks for helping me out Chris,
(&(objectClass=user)(mail=
IT is working perfect now. Thanks for helping me out Chris,
ASKER
Chris, whats the difference between my modified and yours. I get 964 accounts while yours gets 977 accounts.
legacyExchangeDN may be set on a few accounts that no longer really have mailboxes. I wondered if you'd get a discrepancy there.
You could probably find them with:
(&(objectClass=user)(objec
All those that have legacyExchangeDN, but not mail attribute set.
Chris
Try searching more specific by replacing (objectCategory=user) with (objectCategory=person)(ob