I doubt you have done so.
protocolSettings is a multi-valued text attribute. The attribute is not present on a user object UNLESS that user object has had one of its protocolsettings changed from the system default, at some point.
So, if you (or the original poster), made a protocolSettings change to all user objects in your environment for OWA, then it would be there. Otherwise, the setting you are checking for isn't even present!
I have checked this by changing the protocol settings through ADUC several times and results are correct to my understanding!!!!
That will so NOT work if they've ever made any changes to their protocol settings in ADUC. You have to parse the blob to get it right.
Use the below CSVDE query to export a list of users who have OWA enabled…
csvde -f owa.csv -r "(&(objectCategory=person)(homeMDB=*)(protocolSettings=*HTTP§1§1§§§§§§))" -l givenName,sn,initials,displayName,mailnickname,telephoneNumber,mail
From: exchangelist-bounce@xxxxxxxxxxxxx [mailto:exchangelist-bounce@xxxxxxxxxxxxx] On Behalf Of syed faizan
Sent: Saturday, May 19, 2007 12:16 PM
Subject: [ExchangeList] OWA Query
Could some one please help me out with a query which lists all users whose
OWA is enabled in Exchange Server 2003 Ent Edition
This is urgent