task scheduler - only runs in background when using differentcredentials

B

bazzer

Hi

When trying to schedule a task to run using administrator credentials,
or any credentials other than the user who is logged on, the task only
runs in background. Its is a microsft access application i am trying
to run. If i log on as myself and use my own credentials in 'Run As'
field, its fine. Same for administrator logon and credentials. However
if i try logging on as myself and use the administrator credentials in
Run As field(or vice versa), it seems to run, but only in background.
Im using WinXP Pro. Need the application to show on desktop. Have also
tested using calculator but same thing. Cant find anything to resolve
on this or any other sites. Only similar issue could find was
http://support.microsoft.com/kb/253942/en-us
but fix is specific for that problem.

Any help appreciated.

Bazzer
 
P

Pegasus \(MVP\)

bazzer said:
Hi

When trying to schedule a task to run using administrator credentials,
or any credentials other than the user who is logged on, the task only
runs in background. Its is a microsft access application i am trying
to run. If i log on as myself and use my own credentials in 'Run As'
field, its fine. Same for administrator logon and credentials. However
if i try logging on as myself and use the administrator credentials in
Run As field(or vice versa), it seems to run, but only in background.
Im using WinXP Pro. Need the application to show on desktop. Have also
tested using calculator but same thing. Cant find anything to resolve
on this or any other sites. Only similar issue could find was
http://support.microsoft.com/kb/253942/en-us
but fix is specific for that problem.

Any help appreciated.

Bazzer

This is by design: Processes that run under a different account compared to
the foreground session account must remain hidden. If they were visible then
the foreground session could exploit the elevated privileges of the
background session.
 
B

bazzer

This is by design: Processes that run under a different account compared to
the foreground session account must remain hidden. If they were visible then
the foreground session could exploit the elevated privileges of the
background session.- Hide quoted text -

- Show quoted text -

Thanks for the quick reply. Was kind of afraid it might be. Can anyone
suggest any alternatives? Basically am trying to get an access
application to open on multiple users machines at a specific time
every day. But due to the number of machines that I have to do this
on, i am trying to do it using the administrator username and
password.

Bazzer
 
P

Pegasus \(MVP\)

This is by design: Processes that run under a different account compared
to
the foreground session account must remain hidden. If they were visible
then
the foreground session could exploit the elevated privileges of the
background session.- Hide quoted text -

- Show quoted text -

Thanks for the quick reply. Was kind of afraid it might be. Can anyone
suggest any alternatives? Basically am trying to get an access
application to open on multiple users machines at a specific time
every day. But due to the number of machines that I have to do this
on, i am trying to do it using the administrator username and
password.

Bazzer

========

You could use srvany to create the service "MyMSAccess" to launch MS Access
under the System account (http://support.microsoft.com/kb/137890). After
creating the service, run services.msc and tick the box that lets the
service interact with the desktop.

You now create a sheduled task like so:
at 15:45 /every:m,t,w,th,f net start MyMSAccess

I tried this approach for notepad.exe. It works very nicely.
 
P

Pegasus \(MVP\)

This is by design: Processes that run under a different account compared
to
the foreground session account must remain hidden. If they were visible
then
the foreground session could exploit the elevated privileges of the
background session.- Hide quoted text -

- Show quoted text -

Thanks for the quick reply. Was kind of afraid it might be. Can anyone
suggest any alternatives? Basically am trying to get an access
application to open on multiple users machines at a specific time
every day. But due to the number of machines that I have to do this
on, i am trying to do it using the administrator username and
password.

Bazzer

================

Forget about the service - you can do it directly with the Task Scheduler:

at 15:45 /every:m,t,w,th,f /interactive c:\windows\system32\notepad.exe
 
B

bazzer

Thanks for the quick reply. Was kind of afraid it might be. Can anyone
suggest any alternatives? Basically am trying to get an access
application to open on multiple users machines at a specific time
every day. But due to the number of machines that I have to do this
on, i am trying to do it using the administrator username and
password.

Bazzer

================

Forget about the service - you can do it directly with the Task Scheduler:

at 15:45 /every:m,t,w,th,f  /interactive c:\windows\system32\notepad.exe- Hide quoted text -

- Show quoted text -

Sorry, are you saying to put /interactive before c:\windows
\system32\notepad.exe in the Run field in the properties of the task?
This returns 'could not start'. Not sure where else to type this. Is
there another way besides the task wizard?
 
P

Pegasus \(MVP\)

Thanks for the quick reply. Was kind of afraid it might be. Can anyone
suggest any alternatives? Basically am trying to get an access
application to open on multiple users machines at a specific time
every day. But due to the number of machines that I have to do this
on, i am trying to do it using the administrator username and
password.

Bazzer

================

Forget about the service - you can do it directly with the Task Scheduler:

at 15:45 /every:m,t,w,th,f /interactive c:\windows\system32\notepad.exe-
Hide quoted text -

- Show quoted text -

Sorry, are you saying to put /interactive before c:\windows
\system32\notepad.exe in the Run field in the properties of the task?
This returns 'could not start'. Not sure where else to type this. Is
there another way besides the task wizard?

===============

Most programs do not care about the order of parameters but at.exe does,
which is why I made the mistake switching two of them. Type at.exe /? at the
Command Prompt to see the correct order.
 
B

bazzer

Sorry, are you saying to put /interactive before c:\windows
\system32\notepad.exe in the Run field in the properties of the task?
This returns 'could not start'. Not sure where else to type this. Is
there another way besides the task wizard?

===============

Most programs do not care about the order of parameters but at.exe does,
which is why I made the mistake switching two of them. Type at.exe /? at the
Command Prompt to see the correct order.- Hide quoted text -

- Show quoted text -

Oh I see now. Thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top