I. Change password Windows Server 2012, 2016, 2019 via Command Line
- First, open an administrator Command Prompt (assuming you have administrator privileges). To do this, type cmd into the Start Menu. Right-click on the Command Prompt entry and choose Run as administrator. For Windows Server 2019, please click on Start -> Scroll to Windows System -> Command Prompt.
- Type the following command: net user Administrator NEWPASSWORD
then press Enter where NEWPASSWORD is the new password, make sure you have Uppercase, lower case and number with at least 6 letters.
II. Change password Windows 10 via Command Line
- First, open an administrator Command Prompt (assuming you have administrator privileges). To do this, type cmd into the Start Menu. Right-click on the Command Prompt entry and choose Run as administrator.
- Type the following command: net user diwp NEWPASSWORD
then press Enter where NEWPASSWORD is the new password, make sure you have Uppercase, lower case and number with at least 6 letters.