If your Windows was activated before formatting your PC, you can reactivate it using the original activation method. If you used a proxy activation method like a MAK key or KMS, you can follow the local reactivation procedure. This involves using the Volume Activation Management Tool (VAMT) to retrieve the installation ID and confirmation ID from the database created during the initial activation. If significant hardware changes were made, you will need to obtain a new confirmation ID from Microsoft.
To reactivate, ensure that you have the necessary information from the VAMT database and follow the reactivation steps accordingly. If you encounter any issues, you may need to contact Microsoft support for further assistance.
References: