Solved

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

Posted on 2013-01-26
3
483 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
Comment Utility
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 76

Expert Comment

by:arnold
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

The use of stolen credentials is a hot commodity this year allowing threat actors to move laterally within the network in order to avoid breach detection.
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

743 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now