Schedule Task Security in Windows Server 2003
From: cct (peoplecosoftware_at_newsgroup.nospam)
Date: 06/24/05
- Previous message: Parag: "Re: writing to event log"
- Next in thread: [MSFT]: "RE: Schedule Task Security in Windows Server 2003"
- Reply: [MSFT]: "RE: Schedule Task Security in Windows Server 2003"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 24 Jun 2005 15:09:11 +0800
Dear all,
I am confuse with ASP.net security in related to Windows Scheduler.
My server setting:-
Windows Server 2003 + SP1
dotnet framework 1.1 + SP1
web.config:-
<authentication mode="Windows" />
<identity impersonate="true" />
IIS Authentication Method:-
Integrated Windows Authentication (ONLY!)
My sample code:-
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "schtasks.exe";
psi.Arguments =@" /query /fo csv /nh /v";
psi.UseShellExecute = false;
psi.WindowStyle=ProcessWindowStyle.Hidden;
psi.RedirectStandardOutput = true;
Process process = Process.Start(psi);
string szScheduleList = process.StandardOutput.ReadToEnd();
process.Close();
Where szScheduleList return empty. (Login as local administrator or
Environment.UserName=Administrator)
But the same code is running fine in Windows XP+SP2 environment.
Any help is highly appreciated.
Thanks.
- Previous message: Parag: "Re: writing to event log"
- Next in thread: [MSFT]: "RE: Schedule Task Security in Windows Server 2003"
- Reply: [MSFT]: "RE: Schedule Task Security in Windows Server 2003"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|