Confirm the licence is recoverable
An OEM machine carries the key in the firmware and activates itself after a clean install. A retail or upgrade licence is easier to manage when it is linked to a Microsoft account; check the activation page for the current state.
Settings > System > Activation