Link to home
Start Free TrialLog in
Avatar of colin_mcallister
colin_mcallister

asked on

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?
Avatar of manno
manno

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).
Avatar of colin_mcallister

ASKER

Sorry, I should have made it clear that I was trying to change the passwords remotely.

I'm using NetUserSetInfo to set the password.
ASKER CERTIFIED SOLUTION
Avatar of manno
manno

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial