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?
colin_mcallisterAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

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

Lib "Netapi32.dll"

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

eg:

net user

and

addusers.exe

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).
0
 
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.
0
All Courses

From novice to tech pro — start learning today.