Both of these programs are free and can be downloaded from the developers’ websites. Both offer paid versions, but your Windows key can be retrieved with the free version.
Type slmgr. vbs /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX and press ↵ Enter, replacing the XXXXXs with your product key. Be sure to include the dashes. A window should appear saying “Installed product key XXXXX successfully. " Type slmgr. vbs /ato and press ↵ Enter. A window should appear saying “Activating Windows(R) Your Edition”. After a moment, if activation was successful, it will say “Product activated successfully”.
Make sure to copy down the installation ID, as you will need to enter it over the phone. It’s long, but necessary to identify your computer. [1] X Research source