Can I change my own password in Active Directory using Powershell Can I change my own password in Active Directory using Powershell powershell powershell

Can I change my own password in Active Directory using Powershell


If you have the Active Directory PowerShell Module installed, this is a pretty easy task using Set-ADAccountPassword.

You can use the -Server parameter to supply a different Domain Controller name from each Domain to set the password on that Domain.

$DomainControllers = "Domain1DC","Domain2DC","Domain3DC"$MyName = "MyUserName"ForEach ($DomainController In $DomainControllers) {    Set-AdAccountPassword -Identity $MyName -Server $DomainController}

Set-ADUserAccountPassword used this way will prompt you for the old password then the new password for each domain controller.