Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduled Task in Windows 7

Status
Not open for further replies.

GPINC

MIS
May 2, 2006
16
US
We are trying to move over Scheduled Tasks from XP to a Windows 7 client. The task runs a vbs script that then runs a macro in an excel file. The script works when run separately and the task works when it is marked to "run only when user is logged in" but we want this to "run when user is logged in or not". We are using the Administrator account, all the files are local to the client and the task is set to Run with highest privileges. Watching task manager, it opens EXCEL.exe but it appears to not open the file in the script. So, in short, the task only works when we save it with "run only when user is logged in" but we do not want to keep Administrator logged in all the time. Any ideas?
 
Is your Administrator the Built-in Administrator, or just an Administrator user?

I can't see what you are doing wrong but I suppose it wouldn't hurt to double check your approach?


Task Security Context


General task settings

"To run a task under the security context of a specified account (regardless of whether that account is logged on), click Change User or Group, enter credentials for the account, and then click Run whether user is logged on or not".

Configure a Scheduled Task Item (Windows Vista and later versions)

These links look at running Excel macros automatically.

 
Using an Administrator user.

Thanks for the links. No success just yet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top