Would you like to learn how to change a domain user password using Powershell? In this tutorial, we will show you how to use Powershell to set the password of a domain user account on a computer running Windows.
• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 2022
• Windows 10
• Windows 11
Equipment list
Here you can find the list of equipment used to create this tutorial.
This link will also show the software list used to create this tutorial.
Related tutorial – PowerShell
On this page, we offer quick access to a list of tutorials related to PowerShell.
Tutorial Powershell – Changing a domain user password
As an Administrator, start an elevated Powershell command-line.
List the domain user accounts.
Here is the command output:
Request the username and the new password.
Enter the requested information.
Change the password of a domain user account.
Optionally, prompt for a username and a password using the command line.
Change the password using a plain text password.
You need the RSAT package installed or a copy of the following DLL.
Load the DLL to enable the Powershell commands.
Optionally, use ADSI to change the password of a domain user.
Congratulations! You are able to change a domain user password using Powershell.