I'm trying to get an application that needs to run "interactively" with admin rights, but it doesn't actually show anything on the screen—it operates as a background process. I can run it without issues using admin privileges manually or via terminal, but when I attempt to do the same through Task Scheduler as the SYSTEM user, it doesn't seem to launch the app at all. I've also experimented with using a PowerShell script in Task Scheduler to start the EXE, but that hasn't worked either. I've tried using ServiceUI with the PowerShell script, but no luck there either. Just to clarify, this EXE is a portable app that requires admin rights and should run at the logon of any user while staying active in the background. I know I'm setting everything up correctly because the script triggers (verified by creating a text file), but the EXE won't start.
1 Answer
It seems like Task Scheduler can only run interactive tasks when they’re launched by the current logged-in user. You might want to consider two options:
1. Check if your app needs specific file or registry permissions and adjust those accordingly; it can be tricky but tools like Procmon can really help.
2. Look into a privilege escalation solution that can help you run this app effectively.

Are there other methods to run a startup task with admin rights, or is Task Scheduler the only option?