#TodayILearned how to un-expire an AD password
Set-ADUser -Identity username -Replace @{pwdlastset=“0”}
Set-ADUser -Identity username -Replace @{pwdlastset="-1"}
#TodayILearned how to un-expire an AD password
Set-ADUser -Identity username -Replace @{pwdlastset=“0”}
Set-ADUser -Identity username -Replace @{pwdlastset="-1"}