Usually, you'd activate Windows 11 (or 10) using the Settings app to enter the product key. However, if you're in an enterprise environment and you have a specific type of activation key, you can also ...
Microsoft no longer officially supports Windows 10, but you still have an option to get one year of free security updates.