Auto-start script in non-elevated mode?

Get help with using AutoHotkey and its commands and hotkeys
KilliK
Posts: 240
Joined: 10 Mar 2016, 21:19

Auto-start script in non-elevated mode?

09 Mar 2019, 17:32

Hello.

Is there a way to auto-start a script in non-elevated mode, when you load it from an elevated command prompt or file manager?
I know how to make it auto-start in admin mode, but I cant find anything for the opposite way.
RickC
Posts: 253
Joined: 27 Oct 2013, 08:32

Re: Auto-start script in non-elevated mode?

09 Mar 2019, 18:39

You could call psexec (https://docs.microsoft.com/en-gb/sysinternals/downloads/psexec), for example:

Code: Select all

Run, psexec.exe -l -d non-admin.exe
or use Task Scheduler and specify a non-privileged user account to use.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Auto-start script in non-elevated mode?

09 Mar 2019, 18:45

Try this. Cheers.
Reloading: Admin to Non-Admin - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=7752
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask For Help”

Who is online

Users browsing this forum: No registered users and 62 guests