title: How do I run a task using schtask with privileges?
body: <p>I am trying to do the UAC bypass bug with task scheduler, only instead of using the GUI tool, I am trying to do it with schtasks.exe (the equivalent command-line tool).  I managed to do the same more or less, except for the most important part - the "run with highest privileges".</p>
  
  <p>The task scheduler bug making this all possible - <a href="http://www.petri.co.il/bypass-uac-using-desktop-shortcut.htm" rel="nofollow">http://www.petri.co.il/bypass-uac-using-desktop-shortcut.htm</a></p>
  
  <p>This is the command I tried:</p>
  
  <pre><code>schtasks /create /tn name /tr notepad.exe /sc once /st 00:01 /RL highest
  </code></pre>
  
  <p>When I add /RL highest, it says <code>ERROR: Access is denied</code>. This doesn't happen when I use the task scheduler.</p>