Solved

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

Posted on 2013-01-26
3
485 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 77

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parental control on huwei HG658b 1 20
Exchange 2010 offline Address Book (OAB) not updating 10 42
facebook change 4 37
Windows 7 and Windows 10 offline sync 3 18
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no backā€¦
An article on effective troubleshooting
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.

777 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