So I have a 2010 Dell XPS laptop. It came with Windows 7. I upgraded to Windows 10 a few years ago. Recently, the operating system had a failure and tried repairing by going into Recovery mode. That didn't work. I tried starting via CMD and that didn't work. I tried a restore point, that didn't work. I tried basically everything I could to get it to work and nothing worked - it would get so far and then say it encountered a problem and would quit. So whatever - the comp was 7 years old so we bought a new one.
Now, however, I'd like to reformat this bad boy and just start clean again to have as a secondary comp but before doing so I need to create a disk image of Win 10 (which I can do here: https://www.microsoft.com/en-ca/software-download/windows10) but I also need my product key. I tried getting it via CMD by typing in C:\>wmic os get "SerialNumber" and all that it produced was "SerialNumber."
Is there any way I can retrieve my product key from this OS without going into windows (as that's impossible)?