Win 7 Scheduled Task won't run after being altered by SYSTEM

1bru1

New Member
#1
I have a sched task that I authored using my user account that I know from running manually works. The problem I'm having is that at some point Windows 7 is deleting and recreating this task, and doing it incorrectly. Consequently the task won't run at its scheduled time.

The most important change it is making is that it's setting Run As user to SYSTEM instead of my user account. I know this won't work this way from manual runs.

Looking at the task history I can see what Windows 7 is doing, I just don't know why, or how to stop it. Every time I create this task Windows will eventually go through this sequence of events, resulting in a task that is different than the one I created:

1. Task registration deleted
2. Task registered
3. Task registration updated
 


Saltgrass

Excellent Member
Microsoft Community Contributor
#2
Are you running an AT.exe task?

If you are, look at the Action menu in Task Scheduler and check AT Service Account Configuration.
 


1bru1

New Member
#3
I don't think so. I'm just using Win 7 Task Scheduler, which I think uses schtasks.exe under the hood. I'll Google at.exe to see if it's something I can use instead.
 


Saltgrass

Excellent Member
Microsoft Community Contributor
#4
You would use AT.exe to complete a task the the system needed to do, such as flush the BITS queue.

I don't know if there is a way to show what task you are trying to create, but maybe give some details about it and how you are setting it up?
 


1bru1

New Member
#5
I'm creating a task to do an Ad-Aware scan with these parameters (and Windows makes these changes):

General
---Run as <myDomain>\<myUser> (changes to SYSTEM)
---Run only when user is logged on (changes to logged on or not)
---Run with highest privs OFF (changes to ON)
Triggers
---Daily at 3am
Actions
---Start a program
---C:\Program Files (x86)\Lavasoft\Ad-Aware\Ad-AwareAdmin.exe scan "Smart Scan"
Conditions
---Stop if ceases idle ON
---Start if on AC power ON
---Stop if battery ON
---Wake ON (changes to OFF)
Settings
---Allow on demand ON
---Stop if runs longer than 3 days ON
---Force stop ON
 


1bru1

New Member
#6
I do have another task that works fine, and Windows leaves alone. It is configured the same way, except it's a simple "shutdown -s -t 60". So maybe it's a UAC thing with Ad-AwareAdmin.exe?
 


Saltgrass

Excellent Member
Microsoft Community Contributor
#7
I would probably agree is it related to needing an elevated privilege. I looked at Microsoft Security Essentials and it does show system.

I don't run Ad-aware, but I would have thought it had its own scheduler.
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.