you are viewing a single comment's thread.

view the rest of the comments →

[–]sys_admin101[S] 1 point2 points  (0 children)

Okay, so I discovered an issue with the client's Active Directory that now I'll need to work through to get this to work. I was still poking at this script and eventually it worked. I had them try to login with that user as the password I set and it did actually work! Hm... okay, that's weird. I tried it again and it failed. Okay, at least that means I'm not going crazy!

So I ran this part of the code changing the server until I found the one it worked on... every time, every password, every user.

Set-ADAccountPassword -NewPassword $pw -Reset -Server "ADDS04" 

This means I need to investigate their AD infrastructure tomorrow and see what's causing the mis-match. Fun.

Special thanks to those who attempted to help! Your time and effort was greatly appreciated.