Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AD Help

Status
Not open for further replies.

JackSkellington

Technical User
Jul 28, 2005
86
GB
I'm trying to access AD to discover if a given user account is locked I currently have:

Code:
Dim objEntry As DirectoryEntry
Dim targetUser As DirectoryEntry
Dim accountDisabled As Integer  = Convert.ToInt32(ADAccountOptions.UF_ACCOUNTDISABLED)

objEntry = getRootDirectoryEnrtySOU()

targetUser = objEntry.Children.Find("CN" & strName)


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top