I'm trying to fix a friend's Windows 7 PC. I originally asked a question at
And got a useful answer from @Patrick R., which helped direct me towards the Windows 7 USB/DVD Download Tool. The friend who's PC I'm fixing couldn't remember his login for the Microsoft Store (where he thinks he bough his Windows 7 upgrade; he's relatively certain he bought it online, rather than buying a disk) so we borrowed a Windows 7 disk from another friend. But then my friend couldn't remember his Windows 7 product key, and because his PC isn't letting us run any programs we can't run something to tell us what the key is (I've read that we could physically remove the hard drive from the PC and then find the product key from another computer, but I'm trying to avoid that if possible).
Fortunately, thought, I found this:
In short, it seems that you can tell Windows 7 to restore to factory settings from within control panel as long as you have a Windows 7 disk (which we now do), and that you won't need the product key (which is good, because we don't have that).
However, when I go through the steps listed in that link, I get the following error message:
"The unattend answer file contains an invalid product key. Either remove the invalid key or provide a valid product key in the unattend answer file to proceed with Windows installation."
Googling around that led me to this:
That seems to suggest that it's possible to work around this error message by editing the unattend.xml file. But -- and here, finally, is my question -- where is the unattend.xml file?