Below powershell command to set AD user to password never expires
Set-QADUser -Identity “domain\account” -ObjectAttributes @{useraccountcontrol=65536}
If you have list of users then you can put the file into the txt file and use powershell to set all the required user to password never expires
get-content “c:\users.txt” | Set-QADUser -ObjectAttributes @{useraccountcontrol=65536}
It is much safer to use built-in parameters 🙂
Set-QADUser -PasswordNeverExpires $true
You are True my friend. Thanks for the update 🙂
Thats not an “build-in” Cmdlet 🙂 You have to download powergui and import/”enable” the AD module.