Jump to content

Script needed to reset passwords for all users in OU


Recommended Posts

Posted
As my usernames take the form blue1, blue2 etc, I achieve this by creating a batch file in excel, exporting usernames and setting the passwords as the kids surname.
Posted

Can't you export the user logons from AD - pop into excel and add net user at the front and a password at the end - then save it as a txt file and change the .txt to a bat and run it.

 

eg

 

net user

 

thats how I set all of my little dear's passwords.

Posted
Can't you export the user logons from AD - pop into excel and add net user at the front and a password at the end - then save it as a txt file and change the .txt to a bat and run it.

 

eg

 

net user

 

thats how I set all of my little dear's passwords.

 

If you are running it on a box other than a DC (ie your own workstation) you need to have administrative access and also stick /domain on the end too.

Posted

I figured out why it did not work. The script information said it did not need the LDAP information jus the OU. But i had a OU inside a OU. It turns out that it needs all the OU information of LDAP but not the DC info.

 

All works well now.

 

Thanks to everyone who helped me.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...