Change windows user password with python

我只是一个虾纸丫 提交于 2019-12-24 14:13:01

问题


I am looking for a way to change the windows password throgh a python script.
somthing like a win32api that can help me?
Thanks!


回答1:


You can do this with the Win32 function NetUserChangePassword. From Python you can access that with win32net.NetUserChangePassword.

Although as the documentation points out this won't work if you are using active directory. But in that case you are surely not in a position to change user passwords programmatically.



来源:https://stackoverflow.com/questions/33712874/change-windows-user-password-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!