Discussion Locked

About Login Script

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I would like to write one script and i need help in it.I am using windows 2000 adv. server with active dir. installed and i want the password of administrator will automatically change in 7 days.I don't want to change it manually can it be possible if yes then i would like to know how.

I will be thankful to if someone give me guidance on it.
Regards.
Anurag.

5 replies

by joseph moore

Well, I would be very uncomfortable if this were an automated process! To just have a script run and change my admin password every once in a while is a recipe for disaster, IMO!

But, if you just want a script to run that PROMPTS you to enter in a new password for your Admin account, then that is easy.

NET USER ADMINISTRATOR * /DOMAIN

That is it. Just put that line in a BAT file and schedule it to run every 7 days. When it runs a Command Prompt box will pop up on whatever system you are running it on (I suggest you run it on either a DC or your admin workstation) and it will ask for the new password for the Administrator account. It will sit there until someone types it in. Type it in, then hit Enter, and that is it! Password changed!

hope this helps

This discussion is closed to new replies.