I want my batch file to only run elevated. If not elevated, provide an option for the user to relaunch batch as elevated.
I\'m writing a batch file to set a system v
For some programs setting the super secret __COMPAT_LAYER environment variable to RunAsInvoker will work.Check this :
__COMPAT_LAYER
RunAsInvoker
set "__COMPAT_LAYER=RunAsInvoker" start regedit.exe
Though like this there will be no UAC prompting the user will continue without admin permissions.