How do you check if a computer account is disabled in Active Directory using C#/.NET
C# – Using C#, how do you check if a computer account is disabled in active directory
active-directorycldap
Related Topic
- C# – How to convert a byte array to a hexadecimal string, and vice versa
- C# – Active Directory – Check username / password
- What are the differences between LDAP and Active Directory
- C# – How to get the current username in .NET using C#
- C# – How to delete all files and folders in a directory
- C# – How to get the computer name in .NET
Best Answer
Try this:
The second bit of
userAccountControl
will be 1 if the account is disabled.