Skip to content

Instantly share code, notes, and snippets.

@shkpk
Created May 6, 2020 06:32
Show Gist options
  • Save shkpk/79c981cc6c2361da1a4f1d011ce53db2 to your computer and use it in GitHub Desktop.
Save shkpk/79c981cc6c2361da1a4f1d011ce53db2 to your computer and use it in GitHub Desktop.
Import-Module ActiveDirectory
$password = ConvertTo-SecureString -AsPlainText “Test1234” -Force
For ($i=11; $i -le 500; $i++) {
$samAccountName = "dev"+"."+$i
Get-ADUser $samAccountName | Set-ADAccountPassword -NewPassword $password -Reset
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment