You cannot use a key generator to get a key that is illegal.
The reason I suggested a reset is because the commands are not running correctly, if they were they would give the correct response.
You can also try system files scans, but first what is your version and build of Windows 10. Type
winver in Search and select the top result. Post back the version and build in full.
System files scans
Method 1:
Run DISM tool and check the issue. Please follow these steps:
a. Press Windows + X keys and click command prompt (admin). Or PowerShell (Admin).
b. Type the following command in command prompt and press Enter.
DISM.exe /Online /Cleanup-image /Scanhealth
after the scan is complete type the following and press Enter
DISM.exe /Online /Cleanup-image /Restorehealth
then use method 2.
Method 2:
System file checker is a utility in Windows that allows users to scan for corruptions in Windows system files and restore corrupted files.
Run system file checker (SFC) and see if it helps. Please follow these steps:
a. Press Windows + X keys and click command prompt (admin). Or PowerShell (Admin).
b. Type the following command in command prompt and press Enter.
sfc /scannow
After completing the scans restart using Start > Power > Restart.