R
RF
Hi,
I am using the DirectoryServices class in .NET and would like to find some
information regarding "userAccountControl".
I'm adding a user atttributes (C#):
user.Properties["userAccountControl"].Add(512); // account is
enabled
user.Properties["userAccountControl"].Add(514); // account is
disabled
I stumbled across these values while enumerating other preloaded users.
Where can I find other values to set for "userAccountControl".
Also, how can I do the following (correct me if I wrong)
user.Properties["accountExpires"].Add(new Date()); // is this right?
user.Properties["logonHours"}.Add(new Time()); // is this right?
user.Properties["accountLocked"].Add(true); // is this right?
Also, to reset the password of a user, do I call the setpassword again?
user.Invoke("SetPassword",new object[]{password});
Thanks a million,
Randy F.
I am using the DirectoryServices class in .NET and would like to find some
information regarding "userAccountControl".
I'm adding a user atttributes (C#):
user.Properties["userAccountControl"].Add(512); // account is
enabled
user.Properties["userAccountControl"].Add(514); // account is
disabled
I stumbled across these values while enumerating other preloaded users.
Where can I find other values to set for "userAccountControl".
Also, how can I do the following (correct me if I wrong)
user.Properties["accountExpires"].Add(new Date()); // is this right?
user.Properties["logonHours"}.Add(new Time()); // is this right?
user.Properties["accountLocked"].Add(true); // is this right?
Also, to reset the password of a user, do I call the setpassword again?
user.Invoke("SetPassword",new object[]{password});
Thanks a million,
Randy F.