It is indeed possible to change the password through the verification of the Microsoft account,if it is invalid, you can also complete the password reset disk.
If you are going to upgrade to Windows 10 from Windows 7,i don't know if Microsoft still supports free Windows computer upgrades. After all, it ’s been a long time since January 14th. But it doesn't matter,you'd visit Microsoft or create a Windows 10 installation disk.