Created
May 6, 2020 06:32
-
-
Save shkpk/79c981cc6c2361da1a4f1d011ce53db2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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