Today I’ll give You a hint on how to add a new user to an Active Directory. It’s not a big deal to do that, but I have to admit, that I had a little problem with SetPassword function. When I tried to set password for the user I’ve created, it threw me some errors like “Access denied” or “Unexpected error occurred”, although I worked in the context of the domain admin. (continue reading…)