LDAP – Exchange Query


Mailbox enabled users
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(|(homeMDB=*)(msExchHomeServerName=*)))

Mail enabled users
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(targetAddress=*))

Users with Email Proxy Enabled
(&(objectcategory=person)(objectClass=user)(proxyAddresses=*givenProxyAddress*))

Users Hidden from Exchange Address Lists
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(|(homeMDB=*)(msExchHomeServerName=*)(targetAddress=*))(msExchHideFromAddressLists=TRUE))

Default Deleted Item Retentions
(& (objectCategory=person)(objectClass=user)(mailnickname=*)(|(!deletedItemflags=*)(!deletedItemflags>=0)))

Deleted Item Retention Limits
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(deletedItemflags= *)(!deletedItemflags<=0))

Default Storage Limit Report
(&(objectCategory=person)(objectClass=user)(mDBUseDefaults=TRUE))

Mailbox Size Limits
(&(objectCategory=person)(objectClass=user)(mDBUseDefaults=FALSE))

OMA Enabled
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(|(homeMDB=*)(msExchHomeServerName=*))(|(!(msExchOmaAdminWirelessEnable=*))(!(msExchOmaAdminWirelessEnable:1.2.840.113556.1.4.803:=2))))

OWA Disabled
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(|(homeMDB=*)(msExchHomeServerName=*))(|(protocolsettings=*http01*)(protocolsettings=*owa0*)))

OWA Enabled
(&(objectCategory=person)(objectClass=user)(mailnickname=*)(|(homeMDB=*)(msExchHomeServerName=*))(!(|(protocolsettings=*http01*)(protocolsettings=*owa0*))))

Advertisements
This entry was posted in Scripts. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s