Dec 01, 2005 03:25 PM|shadowstorm|LINK
when i use a different flag
usr.Properties["userAccountControl"].Value = ADS_USER_FLAG.ADS_UF_ACCOUNTDISABLE;
it works fine but when i tried to use the normal account.
usr.Properties["userAccountControl"].Value = ADS_USER_FLAG.ADS_UF_NORMAL_ACCOUNT;
it gives a Exception from HRESULT: 0x80072035 error.
would this be a problem in our domain that its not allowing me to set normal account and not on the code itself ?