PC Review


Reply
Thread Tools Rate Thread

Debug Process Scheduled task under different user

 
 
Pascal Yokogawa
Guest
Posts: n/a
 
      7th Jan 2004
Hi,

We currently face the following problem:

We run an Excel application with a custom made addin. This
application is run by a scheduled task (windows XP) under
a different username (same machine). Both useraccounts are
Administrators, no events in the Event Viewer show up.

Our application works correctly under both usernames (the
username we logged in with, and the username the task runs
on), but after some research we found out that with a
scheduled task under a different username Excel asks for
userinteraction. As the task runs invisible, we cannot see
what exactly is asked.

Microsoft Spy++ does not reveal any windows, so debugging
is not possible at the moment.

Our question:
Is there a possible way to find out what the messagebox
should show? All help is welcome.

PS Userinteraction is required BEFORE running our custom
addin, so debug logging from within the addin is not
helpful.

Regards,

Pascal Yokogawa
 
Reply With Quote
 
 
 
 
Drew Cooper [MSFT]
Guest
Posts: n/a
 
      8th Jan 2004
Not sure how you can do this with the Task Scheduler UI, but the cmdline
tool "at" will let you run an app as the local machine that can interact
with the desktop - see "at /interactive".
--
Drew Cooper [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.


"Pascal Yokogawa" <(E-Mail Removed)> wrote in message
news:0bd601c3d534$686d11e0$(E-Mail Removed)...
> Hi,
>
> We currently face the following problem:
>
> We run an Excel application with a custom made addin. This
> application is run by a scheduled task (windows XP) under
> a different username (same machine). Both useraccounts are
> Administrators, no events in the Event Viewer show up.
>
> Our application works correctly under both usernames (the
> username we logged in with, and the username the task runs
> on), but after some research we found out that with a
> scheduled task under a different username Excel asks for
> userinteraction. As the task runs invisible, we cannot see
> what exactly is asked.
>
> Microsoft Spy++ does not reveal any windows, so debugging
> is not possible at the moment.
>
> Our question:
> Is there a possible way to find out what the messagebox
> should show? All help is welcome.
>
> PS Userinteraction is required BEFORE running our custom
> addin, so debug logging from within the addin is not
> helpful.
>
> Regards,
>
> Pascal Yokogawa



 
Reply With Quote
 
Pascal Yokogawa
Guest
Posts: n/a
 
      8th Jan 2004
We have to run the application under an other user than
the user logged in, which is not possible (at least in our
eyes) with the "at" command...

>-----Original Message-----
>Not sure how you can do this with the Task Scheduler UI,

but the cmdline
>tool "at" will let you run an app as the local machine

that can interact
>with the desktop - see "at /interactive".
>--
>Drew Cooper [MSFT]
>This posting is provided "AS IS" with no warranties, and

confers no rights.
>
>
>"Pascal Yokogawa" <(E-Mail Removed)>

wrote in message
>news:0bd601c3d534$686d11e0$(E-Mail Removed)...
>> Hi,
>>
>> We currently face the following problem:
>>
>> We run an Excel application with a custom made addin.

This
>> application is run by a scheduled task (windows XP)

under
>> a different username (same machine). Both useraccounts

are
>> Administrators, no events in the Event Viewer show up.
>>
>> Our application works correctly under both usernames

(the
>> username we logged in with, and the username the task

runs
>> on), but after some research we found out that with a
>> scheduled task under a different username Excel asks for
>> userinteraction. As the task runs invisible, we cannot

see
>> what exactly is asked.
>>
>> Microsoft Spy++ does not reveal any windows, so

debugging
>> is not possible at the moment.
>>
>> Our question:
>> Is there a possible way to find out what the messagebox
>> should show? All help is welcome.
>>
>> PS Userinteraction is required BEFORE running our custom
>> addin, so debug logging from within the addin is not
>> helpful.
>>
>> Regards,
>>
>> Pascal Yokogawa

>
>
>.
>

 
Reply With Quote
 
Drew Cooper [MSFT]
Guest
Posts: n/a
 
      9th Jan 2004
Anything spawned by "at" runs as the system account. It's sorta like
"runas" but you run as the system instead of a regular user account. I'd be
willing to bet that that's not the same as the account you logged on as.
There are only 2 caveats: 1) you'll probably have to be a local admin to use
"at" and 2) anything that Explorer (and several other less-common apps) does
on the desktop will happen in the context of the logged-on user unless you
kill Explorer (or whatever other single-instance app) first.

Try it out. You can even start a cmd console with at, then launch your app
from there.
--
Drew Cooper [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.


"Pascal Yokogawa" <(E-Mail Removed)> wrote in message
news:096c01c3d5b8$0e70fb50$(E-Mail Removed)...
> We have to run the application under an other user than
> the user logged in, which is not possible (at least in our
> eyes) with the "at" command...
>
> >-----Original Message-----
> >Not sure how you can do this with the Task Scheduler UI,

> but the cmdline
> >tool "at" will let you run an app as the local machine

> that can interact
> >with the desktop - see "at /interactive".
> >--
> >Drew Cooper [MSFT]
> >This posting is provided "AS IS" with no warranties, and

> confers no rights.
> >
> >
> >"Pascal Yokogawa" <(E-Mail Removed)>

> wrote in message
> >news:0bd601c3d534$686d11e0$(E-Mail Removed)...
> >> Hi,
> >>
> >> We currently face the following problem:
> >>
> >> We run an Excel application with a custom made addin.

> This
> >> application is run by a scheduled task (windows XP)

> under
> >> a different username (same machine). Both useraccounts

> are
> >> Administrators, no events in the Event Viewer show up.
> >>
> >> Our application works correctly under both usernames

> (the
> >> username we logged in with, and the username the task

> runs
> >> on), but after some research we found out that with a
> >> scheduled task under a different username Excel asks for
> >> userinteraction. As the task runs invisible, we cannot

> see
> >> what exactly is asked.
> >>
> >> Microsoft Spy++ does not reveal any windows, so

> debugging
> >> is not possible at the moment.
> >>
> >> Our question:
> >> Is there a possible way to find out what the messagebox
> >> should show? All help is welcome.
> >>
> >> PS Userinteraction is required BEFORE running our custom
> >> addin, so debug logging from within the addin is not
> >> helpful.
> >>
> >> Regards,
> >>
> >> Pascal Yokogawa

> >
> >
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens if a scheduled task is scheduled to start, but theprevious task execution is still running? joe.carr@gmail.com Windows XP General 1 17th Dec 2007 07:32 PM
Script/scheduled task wanted: Log off local machine user, log on domain user tlyczko Windows XP General 0 29th Jul 2007 07:20 PM
Scheduled task kill process =?Utf-8?B?bWljaGFlbF9mZXR0QGhvdG1haWwuY29t?= Windows XP General 3 11th Oct 2005 10:35 PM
W2K Scheduled Task: Run interactive task when runas another user yatfanho Windows XP 4 20th May 2005 02:42 AM
On startup get failed to run scheduled task for user account, but there is no task scheduled! kifoghorn Windows XP Help 0 18th Apr 2005 07:05 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:42 PM.