Page 7 of 7

Re: RunAsTask() - Auto-elevates script without UAC prompt

Posted: 19 Sep 2023, 10:22
by SKAN
Philister wrote:
19 Sep 2023, 09:31
Isn't it the default to have to run shutdown.exe (plus, I assume, other shutdown commands like a shutdown.ahk) from an elevated command prompt?
I don' t think so.
I normally call ComObject("Shell.Application").ShutdownWindows() in my (non-elevated) always-running-script (Win7,Win10,Win11)...
and at times (rarely) my screen goes blank owing to graphics failure and I force restart blindly with a hotkey binding to Run("shutdown /f /r /t 0").

Re: RunAsTask() - Auto-elevates script without UAC prompt

Posted: 19 Sep 2023, 10:57
by Philister
I see, thanks!