Jump to content

Recommended Posts

Posted

Hey Guys,

 

I have got around 30 kids selected in AD and all need their password reset because the class has forgotten them *sigh* is there an easy way while selected to change their passwords to a generic one and then make them change it on next login...?

 

I'm sure I'm missing something here I just can't see an option?!

 

Cheers :)

Posted (edited)
Hey Guys,

 

I have got around 30 kids selected in AD and all need their password reset because the class has forgotten them *sigh* is there an easy way while selected to change their passwords to a generic one and then make them change it on next login...?

 

I'm sure I'm missing something here I just can't see an option?!

 

Cheers :)

I've used Wisesoft's Bulk AD USers for years without issue. You can make other bulk changes too.

 

BulkADUsers_Main.png

Edited by Ant
  • Thanks 2
Posted

I had a script to do this on OU basis if thats any good

 

dsquery user "OU=[PATH TO OU],DC=SCHOOL,DC=local" -limit 0 | DSMOD user -pwd password

 

If running this could afterwards select multiple accounts in AD and set the password to require change on next logon.

  • Thanks 2
Posted

Cheers guys, unfortunately can't use the OU script because there are users in the OU that don't want their password changing, thanks though!

 

I will give Wisesofts application ago :)

Posted
@Ant, sorry mate. I have tried signing up for it but they haven't sent me the code via email?? :/

If you're registered and logged in, you can get your reg code from the site. To the right of the screen there's a link to the registration code, Here. If you have problems registering you can manually download the licence file from there too.

 

I don't think the site or software gets supported anymore which is a shame.

Posted (edited)

In powershell you can

 

Import-Module ActiveDirectory
Get-AdUser -Searchbase "OU=Students, DC=school, DC=sch, DC=uk" -Filter * | Select-Object sAMAccountName | Export-csv c:\tmp\tmp.csv

 

You can then edit the data in the CSV to include only those you want to change password for and then run :

 

$AccList=Import-CSV c:\tmp\tmp.csv
$Pass = "Password"

foreach ($acc in $accList) {
   Get-ADUser $($acc.sAMAccountName) | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $($acc.Password) -Force)                      
}

to change the password.

Edited by pcstru
  • Thanks 1

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...