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 has successfully managed to kill a popular free offline way to illegally activate Windows 11 and 10.