SEARCH

BYTE SIZE TIPS / QUICK, HELPFUL TIPS

How-To Geek

How to Run a Scheduled Task Without a Command Window Appearing

image

Despite the “Hidden” box being checked in the Scheduled Task properties, tasks which would natively produce a interface box (regardless of whether user input is required) – such as a batch script – can still appear as a window on your desktop. For tasks where no user input is required, this can be quite annoying, but thankfully there is an easy fix for this.

The key to making this window not appear is to configure the task to “Run whether user is logged on or not” in the task’s properties.

image

 

After switching to this option, you will have to enter the appropriate credentials since the task will now run unattended.

image

 

That’s it. Leaving all other options the same and simply changing how the tasks runs as the respective user is you need to do.

  • Waylon Milner

    What happens when the user has to change their password? Will they need to go in to the scheduled task and update it there as well?

  • Jason Faulkner

    The user would need to update their password in the task settings or it would fail.

  • Charlie Barrett

    Our IT department had a service account set up for each user, as well as their normal account. Tasks like that ran under the service account.

    The network guys' automatic configuration tools reached out every month and assigned each person's service account a new password, then scanned through all the scheduled tasks using that account and updated those passwords too. They would not tell the users what ther passwords were, though.

    it always missed something, like developers IIS startup services, which they also have locked down. So for a week after each password change, the network guys would be hopping around to all us developers trying to get our development environments working again. Fun fun fun...

  • Mark Williams

    Isn't there a trick to put start as the first command in like a batch file to hide the command prompt?

  • Jason Faulkner

    You could do something like that, however the command window would still pop up for a split second when the START command runs.

Jason Faulkner is a developer and IT professional who never has a hot cup of coffee far away. Interact with him on Google+

  • Published 05/6/13

RECOMMENDED POSTS

Enter Your Email Here to Get Access for Free:

Go check your email!