'How to chnage '' User cannot change password'' with powershell for all users
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?
Solution 1:[1]
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
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | scottwtang |
