The system should activate itself if you only replace the disk.
But... if you ever need a license ~~use one of the activation scripts from massgravel on githu...~~ I mean buy a new license on microsoft.com and enjoy your shiny, legally activated operaring system.
...or just install Linux, if your use case allows you to do so