JackSkellington
Technical User
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)