Link to home
Start Free TrialLog in
Avatar of Joe
JoeFlag for United States of America

asked on

Scheduled Task not running properly in the background

I am trying to move some scheduled tasks from a windows server 2003 server to a 2008 r2 server. I copied the tasks exactly. There are two programs that are supposed to run. 1 gathers statistics and creates 3 excel files. 2. Sends the files to certain distros. The programs work fine when i run them manually but when i run them as a scheduled task it looks like it's running in processes but the excel files aren't created and no email is sent.

I have tried running as "highest privilege"  it also seems to work if i select "run only if user is logged in" but i cannot always stay logged in.

I'm lost please help.

Josef
SOLUTION
Avatar of Tim Phillips
Tim Phillips
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe

ASKER

I could try running as system. I am running as a domain admin though I'd think that would be enough.

I am running as a domain admin. I have also tried running as a local administrator account as well
Avatar of Joe

ASKER

Hmm.. i will try the arguments. Didn't think of that.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe

ASKER

Oh wait no the first program is an exe file. It looks like it's using a config file for instruction though.

Josef
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe

ASKER

No it's not creating a mapped drive. It looks like it is running everything locally.


Josef
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe

ASKER

Yes i am sorry i did not see that. Start in is filled in.

Josef
Avatar of Joe

ASKER

The program is running. Just it runs in the background and since it is doing so it doesn't seem to do what it's intended to do. When it runs in the foreground it works okay.

Josef
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe

ASKER

It does. I am a domain and local admin. I also set the task to run as highest privilege. Unless there is another setting that i do not know about.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joe

ASKER

i think that i found the answer. I will get back with you all in the next day or so. Testing is in progress.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Josef,

Glad you figured that out.  Seems like a strange but common issue. I did a search and found lots of hits with the same solution that worked for most scenarios. There was also a registry hack mentioned but this seems the easier/safer method. One more tool to add to the chest.  :)
Avatar of Joe

ASKER

Thanks for all the help.