Completely disable UAC in Windows 10
I found the answer myself.
WARNING: This is not generally recommended as it compromises system security. Only do this if you know what you are doing.
Using the Control Panel UAC setting only does half the job. To turn off UAC completely, go to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
and change the value EnableLUA
to 0.
Do what you need to do, and then set it back to 1 to avoid endangering system security for too long.