I am looking for a winapi to reset local password for windows xp/vista/7/8/10. I searched on google and can't find such a library. Some of them only work for vista and below; some of them only for windows 7 and higher. Please help.
Printable View
I am looking for a winapi to reset local password for windows xp/vista/7/8/10. I searched on google and can't find such a library. Some of them only work for vista and below; some of them only for windows 7 and higher. Please help.
Windows provides this functionality already for administrators, so why do you need an api to do this as part of a program?
but in that case the administrator can reset the user's password using existing tools. But be aware, if the administrator force resets a user password this can have implications for that user's access to certain data etc.
Forcing a User to Change the Logon Password by claiming current one expired. The password is going to be reset by Windows, but not your code.
In which case the administrator needs to reset the password using existing tools as already explained. As Arjay points out, if the user doesn't know the correct password they can't get in. This is by design for security. This is why there is always at least one administrator account on Windows systems that can be used to reset the password for a user. But the password for the administrator account(s) still need to be known. If the password for an administrator account is also not known then that is a different matter.
Please make a detailed description of your case, what goes after what.
As far as I understand you, some user forgets his pass. You somehow appear to be able to invoke your app running admin privileges and want the app to reset the pass. Please explain in terms of security, how this is better than logging in with admin account and using management console? Do you clearly understand that your app is a breach in Windows security?