Re: Scheduled task doesn't get correct processlist under remote connec
- From: "Sergey Kuzin [MSFT]" <skuzin@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 14 Nov 2006 12:15:41 -0800
Scheduled tasks run in session 0 under local SYSTEM account.
What API do you use to enumerate the processes?
NtQuerySystemInformation() should give you all processes running in all the
sessions on the server. But it can be run only locally.
WTSEnumerateProcesses() may give you the partial information depending on
the access rights of the account your client prosess uses.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"graciezzzzz" <graciezzzzz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7170B7DF-1DD0-43C4-9D03-1D69DE0571DA@xxxxxxxxxxxxxxxx
Hi all experts,
I'm experencing an issue. I created a .exe file to get the process list
running on our remote server. All the processes I need to monitor is
running
under the remote desktop connection session.
If I run the .exe manually then it works fine; but if I create a scheduled
task on server to run the .exe, the scheduled task doesn't get any process
except one as below:
C:\WINDOWS\SYSTEM32\SVCHOST.EXE
The scheduled task starts/runs/stops with no error. It seems the .exe runs
on another session so it cannot get the processes on the remote
connection.
Is there any suggetions how to fix it?
Many thanks in advance.
.
- Prev by Date: Re: Reallocation of CAL licenses for Windows Server 2003
- Next by Date: Re: HOMEDRIVE and HOMEPATH not mapped
- Previous by thread: Re: Reallocation of CAL licenses for Windows Server 2003
- Next by thread: Re: Scheduled task doesn't get correct processlist under remote co
- Index(es):
Relevant Pages
|