How do I set each bit of the logonHours property (which as 21 bytes) to either zero (for locking user account) or one (for unlocking) ? I have obtained the logonHours property in bytes as follows:
bytes[] logonHours = (byte[])de.Properties["logonHours"].Value;
//After seaching the web, I used the following code :
static class MyExtension
{
}