Change Windows password from the command line

This works on Windows 7, Windows Server 2012, but I’ve not tried on other platforms.
First off fire up a cmd prompt, with administrative privileges.
Then into this type the following:
net user account_name *
This will prompt you for your new password, which will not be displayed, and then to verify it afterwards as well.