Solved

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

Posted on 2013-01-26
3
489 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

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

No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

717 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