changing user password
-
Hello im on Win2k, and i would like to get/change users password through Visual C++. I tried NetUserChangePassword( domain, user, oldpwd, newpwd ) but it returns me a 'Cannot access domain info', so i tried NetUserChangePassword( NULL, NULL, oldpwd, newpwd ) which returns me 'Invalid password' everytime. sigh
-
Hello im on Win2k, and i would like to get/change users password through Visual C++. I tried NetUserChangePassword( domain, user, oldpwd, newpwd ) but it returns me a 'Cannot access domain info', so i tried NetUserChangePassword( NULL, NULL, oldpwd, newpwd ) which returns me 'Invalid password' everytime. sigh
Try using RunAs to execute it with Admin priveleges. "Please don't put cigarette butts in the urinal. It makes them soggy and hard to light" - Sign in a Bullhead City, AZ Restroom