C
cct
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.
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.