Task Scheduler to avoid UAC prompt

How to setup a task via Command Line to run a program without the UAC prompt

From a command line, run the following:

Schtasks /Create /SC ONLOGON /TN TaskName /RL HIGHEST /TR "<path, program and parameters>"

Or use the below parameters instead of /SC ONLOGON to run the task at a specified time.
/SC ONCE /ST hh:mm

Example:
Schtasks /Create /SC ONLOGON /TN TrueCrypt /RL HIGHEST /TR "C:\(...)\PortableApps\TrueCrypt\TrueCrypt.exe /v "File_with_path" /l Y /k "KeyFile_with_path" /a /q"


To run the task immediately, just type:

schtasks /run /TN taskname

Comments

Popular posts from this blog

Add GitHub Repository to DBeaver CE Secured with SSH Protocol

Keyboard Shortcut to "Toggle Line Comments" in DBeaver

DBeaver Shortcuts