Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Task scheduled to run in Windows server 2008 (start up notepad). It seems to work fine when "Run whether user is logged in or not" is not selected. however when I select it the the task no longer runs, Status says: Queued.

I'm not using any mapped drives for this.

share|improve this question
    
On Windows 7 this seems to run successfully, however, because "Run whether user is logged in or not" is selected, it will run hidden (although this is not immediately obvious) - which is no good for something like Notepad! – w3dk Oct 10 '13 at 10:58

Notepad is an application that requires user interaction. To run a task when a user isn't logged in, you need to run something that can run unattended without user interaction.

Create a batch file with the following lines in it (make sure the path c:/temp/ exists; it should, but double-check because Windows versions since XP usually don't create it automatically):

  • @echo off
  • date /t >> c:\temp\task-test.log
  • time /t >> c:\temp\task-test.log
  • echo ------------>> c:\temp\task-test.log
  • cls
  • exit

Then, set up a task that runs that file. You can check the contents of the file "c:\temp\task-test.log" using Windows Notepad to see what times and dates your task successfully ran that batch file.

If this works, then it probably means that the interactive requirements of Notepad are the issue.

share|improve this answer

In registry edit browse to... HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest

On the right Pane find "SkipEnvironmentChecks" change the value from 0 to 1.

This will make QTP to continue running when the window is locked (but not when it is logged off).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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