NT Local Admin Password

I'm trying to develop a system using VB6 (on NT4) which changes the local admin password on any PC on our network.

I can do this no problem if I know the current local admin password...but unfortunately some of our users have been changing this as they go.

Is there anyway I can either override the password (I have admin rights) or any API to return the password for the local admin on any PC?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

mannoConnect With a Mentor Commented:
..then I think you need to use scripts.
In VB, check out API call NetUserGetInfo

Lib "Netapi32.dll"

It may also be done using NT scripts and resource kit utilities.


net user



However you do it, remember you will require admin privileges on the local machine. (A quick way is to become a member of Domain Admins on the same domain as the workstation).
colin_mcallisterAuthor Commented:
Sorry, I should have made it clear that I was trying to change the passwords remotely.

I'm using NetUserSetInfo to set the password.
All Courses

From novice to tech pro — start learning today.