by Jesus Garcia (2 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (2 Votes)
This code change the any user password on NT4.0/2000/XP, of course, you need to have administrator permission on the server. You can change the password in only one server, or you can change the password on several servers in a list. This program was made with pure VB code, no Dll's, ActiveX, etc.
It take the local computer name (Default) and the current logged user.
Please vot for it, and give your feedback.
Inputs
\\Server_Name,"User","OldPassword",NewPassword"
API DeclarationsPrivate Declare Function NetUserChangePassword Lib "Netapi32.dll" ( _
ByVal domainname As String, ByVal Username As String, _
ByVal OldPassword As String, ByVal NewPassword As String) As Long