"Mark D. MacLachlan" <> wrote in message
news:...
>I had a conversation with a MS Support Engineer on this a few years
> back and was told that it isn't a property within AD, I was told that
> ADUC only shows those options as a courtesy to customers so they did
> not have to manage TS access separately from the user object. (If only
> they had kept that up when Exchange 2007 hit the streets).
>
> In another thread I have posted code that retrieves the information.
> It only works when executed from a TS server though.
I don't have a TS server, which is why I asked. I think you confirmed that
AllowLogon is what I call a property method (a method exposed by the
IADsUser interface that returns a value based on other AD attributes). This
means you cannot improve the query as I suggested with the clause
(allowLogon=0), and avoid the binding steps that slow the script
considerably. Other examples of property methods (exposed by IADsUser) are
Parent, AccountDisabled, AccountExpirationDate and LastName. None of these
show up in ADSI Edit, and none can be used in an ADO query.
--
Richard Mueller
MVP Directory Services
Hilltop Lab -
http://www.rlmueller.net
--