There is a MAS solution for windows that activates it on GitHub. I had to use it when the key I purchased a decade ago didn’t work when I upgraded my hardware. I didn’t want to pay a second time for an OS that was going to push Cortana, OneDrive, and ads at me.