Avatar of Joe
Joe
Flag 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
Windows Server 2008Windows BatchWindows Server 2003

Avatar of undefined
Last Comment
Joe

8/22/2022 - Mon
SOLUTION
Tim Phillips

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Russ Suter

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Steven Carnahan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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
Joe

ASKER
Hmm.. i will try the arguments. Didn't think of that.
SOLUTION
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
SOLUTION
Joe Mika

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Joe

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


Josef
SOLUTION
Steven Carnahan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Joe

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

Josef
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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Steven Carnahan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Steven Carnahan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
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
Joe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Steven Carnahan

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.  :)
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Joe

ASKER
Thanks for all the help.