Home > Back-end >  How to chnage '' User cannot change password'' with powershell for all users
How to chnage '' User cannot change password'' with powershell for all users

Time:05-05

all of my user in AD have no permition to change their password and I want to change it. How can I change it via powershell?

CodePudding user response:

If you truly want to do for every user, it can be done with just a couple lines

$users = Get-ADUser -Filter *
foreach ($user in $users)
{
    Set-ADUser -Identity $user -CannotChangePassword $false
}
  • Related