• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1747
  • Last Modified:

UserAccountControl value of 590338

First let me start by saying I am a novice at LDAP stuff

For a report I am writing I need to retrieve some ldap info so I

ran the following query

SELECT displayname
      ,samaccountname
      ,useraccountcontrol
      ,pager
      ,title
      ,department
FROM openquery(ADSI, 'SELECT department
                      ,samaccountname
                      ,pager
                      ,useraccountcontrol
                      ,displayname
                      ,title
                      FROM ''LDAP://t.local'' (I blanked out ldap value for security)
                      WHERE objectCategory = ''Person''AND objectClass =''user''
                      order by displayname')

I was able to google all the useraccount control values to see what they meant except for the user account control value of 590338

Any one have any idea what this one means?
0
johnnyg123
Asked:
johnnyg123
  • 2
1 Solution
 
Mike KlineCommented:
You have to add them up which can be a pain

http://support.microsoft.com/kb/305144

Accountdisable    = 2
NormalAccount    = 512
Dont_expire_password = 65536
Trusted_for_delegation = 524288

= 590338

bing/google "calculating useraccountcontrol"  really nice spreadsheet out there that can make this a lot easier...it's what I used :)

Thanks

Mike
0
 
johnnyg123Author Commented:
Perfect....Thanks Mike!
0
 
Mike KlineCommented:
Glad to help...helped me too because I didn't have that spreadsheet :)

Thanks

Mike
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now