Don't do this. Either run unactivated or do it officially.
Better option is to run a Linux VM with Wine. As it turns out, Microsoft is very happy to let you pirate Windows because they want your data and to sell you One drive.
I run Linux with wine and if I make a Windows VM I’ll still use MAS and other tools to strip out Microsofts bloatwear. If you don’t like OneDrive so much then why even bother paying Microsoft for the trash heap that is Windows? There’s more than just OneDrive stealing your data.
If Microsoft really cared they’d pull a Nintendo and have GitHub nuke their repo.
I recently found out that these keys are nowadays embedded in the BIOS. The following command will retrieve it:
sudo strings /sys/firmware/acpi/tables/MSDM
This works even if you nuked Windows and installed Linux. Do note that this key will be locked to that particular hardware; you could reinstall Win on that specific computer, but you can't use that key to activate Win on a different machine.
So I did this. I nuked Windows when I bought a new laptop. About a year later I changed jobs and now needed to use Visual Studio. Now I know why Windows never hassled me for a key when I reinstalled...