WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to interpret UserFlags

Keywords:   interpret UserFlags

Question:

I'm trying to perform an action based on several of the UserFlags settings (AccountDisabled, AccountLockedOut, etc). I see how to set these values, but I haven't been able to figure out how to interpret the existing value. Do you have any code samples?

Answer:

Here's an example:
intUserFlags = dsGetProperty(sAdsiPath, sProperty)
If intUserFlags & UF_ACCOUNTDISABLE
.
.
.

Article ID:   W15044
File Created: 2012:05:10:09:23:48
Last Updated: 2012:05:10:09:23:48