I have the following Active Directory DirectoryEntry routine below. I don't need the "userAccountControl" property but I really need a Workstation Property that shows whether or not it is disabled.
I've used ADSI Edit tool but don't see anything that resembles this.
Many thanks to whomever could help!!
Dim de As DirectoryEntry
de = New DirectoryEntry("LDAP://" & objRecordSet.Fields("distinguishedName").Value.ToString)
if CBool(Cint(de.Properties("userAccountControl").Value) And &H2) then