Run application as whatever user called it (non-administrator) on Windows 10 (Supressing UAC Prompts)
· One min read
<code class="shell">cmd min C set __COMPAT_LAYER=RunAsInvoker && start "" %1
For example:
<code class="shell">@echo off
set __COMPAT_LAYER=RunAsInvoker
start "" XXX.exe
exit /b 0
ref https://stackoverflow.com/questions/37878185/what-does-compat-layer-actually-do
