What API can be used to remotely access Windows account information?

What API is available for remote access to Windows account passwords? Assuming I have the proper credentials to change my Windows accounts, I need to write software that can do this remotely.

The software will run on Linux, and it still seems that SMB may have some features in this area, but I need either an API, a library, code or even the right keywords to help me figure out how to look for solutions or a solution approach this problem.

I found the Wmi client on Linux, but as far as I understand, there seems to be a problem with it.

+3
source share
2 answers

Try:

smbpasswd -r machine -U user.

You can use wmi-client , but on the other hand, which does not work on a Windows 2008 server with a domain controller and the password is transmitted over the network without encryption.

+1
source

The smbpasswd command included with Samba allows you to change the password on remote computers. For instance.

smbpasswd -r MACHINE -U USER

You should be able to simply call this command from your favorite programming language; the next version of Samba will have some Python APIs that are likely to also allow you to do this from within Python.

+1
source

All Articles