After some fuzzy actions (turning on / off UAC?), I ended up in the same situation as described above:
Properties | The Compatibility tab is grayed out, so turning on this option seems impossible (compatibility modes cannot be set in this program because they are part of this version of Windows).
To recover from this situation, you need to edit the registry to remove the RUNASADMIN settings associated with cmd.exe.
The preference 'RUNASADMIN' is stored in these registry keys:
HKEY_CURRENT_USER \ Software \ Microsoft \ Windows NT \ CurrentVersion \ AppCompatFlags \ Layers HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ AppCompatFlags \ Layers
Delete the values โโc: \ windows \ system32 \ cmd.exe and you are back in business!
Kitty
source share