A support technician leaves the company and the IT department wants to change the administrator password for all workstations joined to a Windows domain.
Activity, although many do not believe it happens often, if in the organization we do not have a tool that allows us to perform this activity quickly and centrally, what option do I have?
Well, there is an option that is quite fast, safe, and above all free of charge. Microsoft among its many tools owns one that belongs to the SysInternals group. The tool I want to mention is PSPasswd.
This wonderful tool allows me to change the password of an account on the domain-joined workstation. It even allows me to change the password on multiple computers using a text file.
To download it you just have to go to the following URL:
Sysinternals Suite – Windows Sysinternals | Microsoft Docs
For example, to change the password on a single computer, we must run the following command:
Pspasswd \\PC-001 administrator NewPassword -nobanner
To change the password on multiple computers, we need to run the following command:
Pspasswd \\PC-001, PC-002,PC-003 administrator NewPassword -nobanner
And finally, we can change the password to a group of computers that are in a txt file, wherein each line of the file must be only the name of the computer.
Pspasswd @computers.txt administrator NewPassword -nobanner
For everything to work, we must meet the following requirements: 
- The pc must be available on the network. You must be able to ping
- You must run the command from a domain controller
- The Domain Administrators group must be part of the local administrators of the computers.
And that would be it. I look forward to this short article helping you in your day-to-day management tasks.
Jhony Trujillo