I understand the need to have the desktop secure and a scheduled task running on an unlock desktop would be a risk. Net UI Automation, scheduled to execute in the middle of the night. Today, I am still running into the same issue because I need to automate functions of a legacy user interface using. I first experienced this issue about 4 years ago when I was attempting to use test automation software to test applications. It’s a shame that the Microsoft Support person could not explicitly say that and suggest a possible solution. Run only when user is logged on radio button.” To make a task run interactively, select the If this radio button is selected, tasks will not run interactively. To do this, select the radio button labeled “You can specify that a task should run even if the account under which the task is scheduled to run is not logged on when the task is triggered. When you Schedule a Task and Set it to “Run whether user is logged on or not” is checked, is an implied hidden task. LDL707, You have a very good question, It seems like you are having the same problem that I am having. I copied your example, and it worked for me as well, but with another task that also calls a batch, which in turn executes an SSIS package, it does not work when it's on "run when user is logged on or not". What status did the scheduler list for the task after it should have run? I don't know what to tell you besides "keep trying". Sure enough, when I watched the folder with another computer through the network, the TestBat.log file was created with the expected contents at the expected time. Then I logged off a couple of minutes before the scheduled time. I scheduled it to run one time, using my account, and selected Run whether user is logged on or not. I created a simple batch file with the following in it: ECHO I ran! I really did! >c:\temp\TestBat.log I just tested this (on Windows 7 Ultimate). It says it will not run interactively based on the radio button being selected, even if you're logged in. That's what you'd expect of an interactive task given the way the documentation is worded. I am using my domain account to launch the ST I am an admin on the local server, a domain admin on the domain and I have full read/write/execute to the mapped drive I am copying to.Īny ideas of what to check/update to get this set-up to work correctly? I understand that it will not be interactive if I run it in this manner but I do not understand why it does not run the script that contains the robocopy command. Use the "Run whether user is logged on or not" the script does not get executed. When I manually start the scheduled task using the "Run only when user is logged on" option I can see the task run interactively and it mirrors the directories as expected. The script uses the robocopy command to mirror a directory on the server itself withĪ mapped drive to another machine on the same domain. I have actually created a scheduled task on a Windows Server 2008 R2 box that kicks off a Powershell script. Still looking for answers for this particular issue. It never pops up any kind of window, but it always runs. I know I run backup batch files on a schedule, with a command line interface (and output redirected to a file). Instead of trying to bring up Calculator, try making a small batch file that echoes a message into a log file. That's probably not the answer you wanted, but it's possible that you don't actually NEED a user interface, and if so your testing methodolgy is a bit flawed. To make a task run interactively, select the Run only when user is logged on radio button." I guess the concept here is that a task requiring a user interface is simply not going to be allowed to present that user interface to a different user (or to someone passing by the computer when no user is logged-on). select the radio button labeled Run whether user is logged on or not. There is some pertinent info for your issue in the Task Security Context topic in the Scheduler help file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |