Windows 98 product keys are not stored in a way that can be reliably retrieved from the system after a reinstall, and they are not derivable from the device serial number (S/N).
For Windows versions like 98, the product key is normally:
- Printed on the original Certificate of Authenticity (COA) label on the PC case, or
- On the packaging/manual of the original Windows 98 or QuickRestore media.
If the COA sticker, packaging, or documentation with the key is lost and the key cannot be read from the old installation (for example, because it was wiped by QuickRestore), there is no supported method from Microsoft to reconstruct or recover that Windows 98 key from the serial number or from the current installation.
The only supported options in that case are:
- Locate the original COA label or media/packaging that contains the key, or
- Use a different valid Windows license (for a supported version of Windows) if the hardware can run it.
References: