Details: Windows 2000 Server, with Active Directory.
I'd like my VC# App' to change user-passwords on our network. I've looked into the NetUserChangePassword function and contrary to the documentation, it only seems to work for local users, rather than networked ones. I've checked the syntax and documentation : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netuserchangepassword.asp
..and tried various versions of this:
ver", "username", "oldpass", "newpass")
but it wont change (non-local) user password - it works fine for users on the local machine.
It also requires the current password, which is a shame as I'm an administrator user and obviously dont need to do that from the cmd prompt or via active directory.
So is it possible to change A Users Password - Without.. a) Needing to specify the current password b) Server (as we have lots of users on several servers)