Powershell reset password and enable-adaccount not working
Posted on 2014-12-19
I have some users in an OU and have been using this command to try and reset their passwords (with a variable $pwd) and then enable their accounts. I get no errors in powershell but the accounts do not become enabled.?
Get-ADUser –Filter ‘enabled –eq “false”’ –SearchBase “OU=students,OU=science,OU=domain,DC=domain,dc=local” | Set-ADAccountPassword -NewPassword $pwd –reset –PassThru | enable-adaccount
Where can I look in Event Viewer for errors.?
thanks in advance