Program for creating accounts in Windows NT Server 4 NT

Hi experts,

I need to reset Administrator password and create another accounts with administrative privilege. I want to write program to do this as following:
   1. The program has to be EXE file.
   2. I need to force the new accounts to change password in next login
   3. The accounts has to be created in DOMAIN
   4. It has to be compatible with Windows NT 4 SP 6A

Any one can help which programming language should I use? And how?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You won't be able to make it work on Windows if you don't have a password with administrative privileges to logon... as soon as it starts, C:\WINDOWS\system32\config\SAM and C:\WINDOWS\system32\config\SECURITY will get locked, so you won't be able to read nor write them manually...

Look at:

Look at this bootdisk:

By the way, if I were you, I'd use C++ to make that program...

I think it will the language best suited for that application...


Basic all this stuff, you can make in any languague (in a ugly way) calling OS commands.

To be more precise the commands:

net user /?
net group /?
net localgroup /?

So for example, if it's C or C++ you can use system(), if it's bat lot file, you can use start net user....

Hope this help,


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Use ASPI component to change account related settings.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.