Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I'm trying to query computer objects from AD.
How can I identify the enabled/disabled status?
Any suggestions?
https://support.microsoft.com/en-us/kb/305144
You would do a bitwise AND with decimal 2 to determine if it is disabled:
psuedocode:
(userAccountControl & 2) != 0) // disabled
User | Count |
---|---|
103 | |
90 | |
78 | |
72 | |
68 |
User | Count |
---|---|
108 | |
96 | |
95 | |
74 | |
71 |