Solved

Need help configuring a scheduled task (ran when not logged in)

Posted on 2013-01-26
3
487 Views
Last Modified: 2013-05-07
I have configured a basic task to run that will run fine when I am logged in but when I re-configure it to run when I am not logged in it does not run. I have entered my credentials and I also tried checking the "run with the highest privileges" checkbox also. Any ideas not how to get this working?
0
Comment
Question by:Thaidog
3 Comments
 
LVL 9

Accepted Solution

by:
EMJSR earned 500 total points
ID: 38823281
Does the task/software you run usually have an interactive component, e.g. a program GUI? Because, the running of the application when logged on or not, states, "...select the radio button labeled Run whether user is logged on or not. If this radio button is selected, tasks will not run interactively.  To make a task run interactively, select the Run only when user is logged on radio button."

Unless the task you are scheduling can be run from the command line, I guess it won't work.

So, if your task is requiring a user interface, it wouldn't be allowed to show it without a specific user providing rights by being logged in. If you can run the task without the need to show a window, then that would probably be just fine.

Would it be an option to simply lock your computer instead of logging off? You could do this by using the Windows Key + L. It would still password protect Windows, but keep you logged in with sufficient credentials to run a task. Just a thought?
0
 
LVL 78

Expert Comment

by:arnold
ID: 38823337
C:\windows\tasks
Make sure the require user to be logon or interact with desktop is not checked.
The other issue deals with whether your credentials have the run as batch rights.
0
 

Author Comment

by:Thaidog
ID: 38823404
This is for a powershell script to log on remotely to a vSphere server to do some sanity checks on the fiber channel storage.... I am running it with the hidden window option:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -nologo -WindowStyle Hidden -command "& {C:\users\johndoe\SkyDrive\PowerShell\Scripts\get_bad_paths.ps1}"

Open in new window


I'll try it with the screen locked to see if that works after I revert the changes I made to have it run when logged off...
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An article on effective troubleshooting
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question