
"My password isn't working!" ... Can you reset it?" These words are typically heard at least once or twice a day by front line support at most places. No matter how much we try to inform and remind users about their expiring passwords, there will be those that forget to change it before it expires or end up locking themselves out one way or another (iPhone/Exchange anyone?)
I have written a few AD functions in PowerShell. One of them gets information about a user and then passes that along to possible actions to take. The function I'm writing about is one of those actions.
What this function will do is take an account name (or ask you for one), and then give you 3 options.
-actName (Account name to reset)
This is the code for the Resolve-Username function:
This is the code for the Reset-ADPassword function:
Let me know if you have any questions or comments!
No comments yet. Be the first!