Done it on several of my computers: once you have win10 installed and connected to internet, and it shows is activated, that computer configuration is recorded on Microsoft server linked with your win10.
Reinstalling a clean win10, during the process say "I don't have a key"; at the end of instalation, after automatically connecting to the Internet (Microsoft server), your windows will be activated.