If your Windows license is 'digital,' which means that it's tied to your Microsoft account, entering the product key into a new PC will not work.
How to Transfer a Digital Windows License to a New PC Otherwise, follow the instructions for transferring a non-digital Windows 10 or 11 product key, also below.
If the Activation screen says that you have a digital license, follow the instructions for transferring a digital license below.