Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

IT漫步

技术生活札记©Yaohui

  • 首页
  • 关于
  • 联系

__COMPAT_LAYER

Run application as whatever user called it (non-administrator) on Windows 10 (Supressing UAC Prompts)

2021年9月26日2021年9月26日 by ylhyh
cmd min C set __COMPAT_LAYER=RunAsInvoker && start "" %1

For example:

@echo off
set __COMPAT_LAYER=RunAsInvoker
start "" XXX.exe
exit /b 0

ref https://stackoverflow.com/questions/37878185/what-does-compat-layer-actually-do

Posted in: Categories windows Tagged: Tags __COMPAT_LAYER, UACLeave a comment

Built with TotalPress – Powered by WordPress