I am migrating a system from XP to Windows 7. I ported a scheduled task that worked fine under XP to the Windows 7 environment by re-creating the job in the new scheduled tasks manager, and calling the same batch (.CMD) file. In the task properties General tab, the Hidden checkbox is not checked. The CMD file runs normally (visible) if started from a CMD window prompt or from Explorer.

But when the task is started by the Task Scheduler, it runs hidden. The CMD window is not visible and the UI of the program that it runs (a backup program) is not visible. The processes are listed in Task Manager, and they are running under my user name (not SYSTEM or LOCAL).

Can anyone explain why this task is running hidden, and how I can make it visible?

1 Answer 1


I discovered that a task has to be set for "run only when user is logged in" to be visible. Otherwise it is hidden (regardless of the setting of the "Hidden" checkbox).

This is a place where a minor improvement to the UI would make it much clearer. For example, if "Run whether user is logged in or not" is checked, the "Hidden" box also becomes checked. Or just put the phrase "and task will run hidden" after "Run whether user is logged in or not".

See http://technet.microsoft.com/en-us/library/cc722152.aspx for more information.

  • 7
    Otherwise it is hidden (regardless of the setting of the "Hidden" checkbox). That’s because the Hidden checkbox has nothing to do with how the program is displayed when it is run, it determines whether the Task is Displayed in the Task Scheduler or not. When it is checked, the task is only visible if you select Show Hidden Tasks from the View menu.
    – Synetech
    Oct 2, 2015 at 20:48
  • 1
    Wow.. FINALLY got my startup script to work - I think. And just because I had it set to run always no matter if I was logged on or not I could never figure out why it didn't run. Thanks, tim11g! Now my script wake up when it's asleep and do what it needs to do..
    – Malachi
    Mar 1, 2018 at 21:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.