Change Password in Windows via Command Line Interface

To change your Windows account password via CLI, do the following:

  1. Start Windows.
  2. Launch Terminal in macOS (Applications > Utilities > Terminal) and find out Windows UUID (Universally Unique Identifier) by executing the following command:

    The output may be as follows:

    UUID STATUS IP_ADDR NAME

    {6f05fe58-2ef6-4049-847a-c393f1077658} running - Windows 7

    6f05fe58-2ef6-4049-847a-c393f1077658 is the Windows UUID.

  3. Change your Windows account password by executing the following command:

    This command may look as follows:

    If you see the following output, the password has been changed successfully:

Was this topic helpful?