G
Guest
I am a newbie to .NET, but not to programming.
I am taking in Active Directory users using the DirectoryServices namespace
(getting results from a DirectorySearcher). One of the attributes I am
getting is the UserAccountControl attribute that AD stores as a hex.
However, when I look in my search result, that information is typed as a
System.Int32. I am trying to determine if a user is disabled, which will
force a '2' in the last character of the hex string (0X00000002).
Is there any way to either keep the attribute in hex format or change it back?
Thanks.
I am taking in Active Directory users using the DirectoryServices namespace
(getting results from a DirectorySearcher). One of the attributes I am
getting is the UserAccountControl attribute that AD stores as a hex.
However, when I look in my search result, that information is typed as a
System.Int32. I am trying to determine if a user is disabled, which will
force a '2' in the last character of the hex string (0X00000002).
Is there any way to either keep the attribute in hex format or change it back?
Thanks.