Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:00:12+00:00 2026-06-17T11:00:12+00:00

It is noted here and in the help that you can set run as.

  • 0

It is noted here and in the help that you can set “run as”.

/RU  username      Specifies the "run as" user account (user context)
                       under which the task runs. For the system account,
                       valid values are "", "NT AUTHORITY\SYSTEM"
                       or "SYSTEM".

From my tests these commands will start the task

schtasks /create /sc once /st 00:00 /f /tr foo.exe /tn bar
schtasks /run /i /tn bar

However running it as SYSTEM will not launch foo.exe

schtasks /create /sc once /st 00:00 /f /tr foo.exe /tn bar /ru SYSTEM
schtasks /run /i /tn bar

The reason I would like to run as SYSTEM is because it was said in the other question that doing so would essentially run foo.exe in the background without a window.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:00:13+00:00Added an answer on June 17, 2026 at 11:00 am

    It works for me

    C:\Windows\system32>schtasks /create /sc once /st 09:36 /f /tr notepad.exe /tn bar /ru SYSTEM
    SUCCESS: The scheduled task "bar" has successfully been created.
    

    enter image description here

    It also runs using

    C:\Windows\system32>schtasks /run /i /tn bar
    SUCCESS: Attempted to run the scheduled task "bar".
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: when I say static string here I mean memory that can not be
I'm getting a mind-boggling response from jQuery that I'm hoping someone can help me
and thanks in advance for your help! Here's my situation: I have a set
A server and respective client support client authentication but as noted here: SSLHandshakeException: no
NOTE: This is a followup to my question here. I have a program that
From here: https://computing.llnl.gov/tutorials/pthreads/#ConVarSignal Note that the pthread_cond_wait routine will automatically and atomically unlock mutex
Note that I'm aware of other yield in vb.net questions here on SO. I'm
Here's what I'm trying to do: the user submits a time in pacific, once
I am simply trying to set a room variable (adding the user's name to
I want to write a script that retrieve the tweets from a twitter account.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.