Changing Password

Osama Mansoor 86 Reputation points
2021-10-11T10:23:05.653+00:00

Hi Experts,

Is there any way so I can reset the local Administrator Password of my domain-joined computers from a single script or window?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,810 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Riaan-VS 381 Reputation points
    2021-10-11T12:38:32.547+00:00

  2. Limitless Technology 39,786 Reputation points
    2021-10-12T13:40:03.207+00:00

    Hi there,

    The Reset-ComputerMachinePassword cmdlet changes the computer account password that the computers use to authenticate to the domain controllers in the domain. You can use it to reset the password of the local computer.
    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/reset-computermachinepassword?view=powershell-5.1

    -----------------------------------------------------------------------------------------------------------------------

    If the reply is helpful, please Upvote and Accept it as an answer

    0 comments No comments

  3. Gary Reynolds 9,581 Reputation points
    2021-10-12T15:55:56.913+00:00

    Hi,

    You might want to look at installing Microsoft LAPS in your environment, it will increase the security of your environment and workstations, by moving the local password management to the AD, with automatic periodic password changes. You can also manually trigger the changing of the local admin password from your machine using a powershell command or GUI for your machine.

    You can download here and the operation guide is included
    https://www.microsoft.com/en-us/download/details.aspx?id=46899

    Gary.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.