diff --git a/scripts/users/reset-password.ps1 b/scripts/users/reset-password.ps1 index 5b54a9a..0d9f8d5 100644 --- a/scripts/users/reset-password.ps1 +++ b/scripts/users/reset-password.ps1 @@ -9,12 +9,14 @@ Catch Break } +#Specify your default password here +$default_password = 'default-password' + function Reset-Password { Try { $username = Read-Host 'Please enter a user name' - $default_password = 'default-password' Unlock-ADAccount -Identity $username Set-ADAccountPassword -Identity $username -Reset -NewPassword ( ConvertTo-SecureString -AsPlainText $default_password -Force