Scheduled Task runs in background instead of foreground

  • Thread starter Thread starter H. Debs
  • Start date Start date
H

H. Debs

The scheduled task is a TV viewing application. Say the user name set
for the task is abc. If I'm logged in as abc, the TV app starts up
fine. If I'm logged in as another user the TV app starts, I can hear
the sound, but I can't see the app's window, and there's no button on
the taskbar. It seems like it is runing in the background. (To the
best of my knowledge, the TV app is not designed to run as a service).

Anyone know what's happenning? How to fix this?
I tried creating a new 'robot' admin account with no profile (i.e.
never logged in with that account) and used that account for the task,
but the problem remains.

Thanks.

Habib
 
This is so by design. It allows you to run tasks under
the Administrator's accout, without letting the current
user run piggy-back on that task.
 
Pegasus (MVP) said:
This is so by design. It allows you to run tasks under
the Administrator's accout, without letting the current
user run piggy-back on that task.

Right. Thanks, Pegasus.
So what should I do if I want certain tasks to run in the foreground
no matter which user is currently logged in?
 
Schedule them from the Command Prompt, using at.exe
and specifying the /interactive switch:

at 15:00 /interactive /every:M,T,W,Th,F c:\tools\SomeApp.exe

Note that these jobs will run under the System account. This
account has no access to networked resources.
 
Schedule them from the Command Prompt, using at.exe
and specifying the /interactive switch:

at 15:00 /interactive /every:M,T,W,Th,F c:\tools\SomeApp.exe

Note that these jobs will run under the System account. This
account has no access to networked resources.

Great! Works! Thanks a lot!
 
Pegasus, I've one more question, please.

Where's the profile for the System user account? (in particular, the
ntuser.dat file), and how can I modify that user's settings? (can I
login as that user? How?)
I'm asking because the GUI for the app that's starting in the
scheduler using at.exe has wrong colors: a mix of the default grey
colors and the ones I have set for my own account.

Oh, and one more! :)
That question made me think of something related... When I use
ntbackup to back up the system state, the registry (most of it) gets
backed up in the Repar\RegBack folder, but where does my ntuser.dat
get backed up to???


Thanks again.

Habib
 
I'm not Pegasus but I'll answer. Hope he doesn't mind!

The System user account doesn't, I believe, have a profile as such.

The System State should be restored as a whole because of the
dependencies of one part on another. The user ntuser.dat gets backup
up with the user profiles, which are not part of the system state.

Cheers,

Cliff

(MVP)
 
Thanks for the answers, Cliff.
How can I change the default colors then? (the ones of the login
screen right after boot up, which the system account seems to use).
 
Back
Top