SEcond Post: Please Help

A

Aravind @Office

Hello everyone

I want to set the system time via a web user. I have configured the web
application to use impersonation and it impersonates an account that is
member of local administrator group.

I am using Platform invoke and trying both SetSystemTime and SetLocalTime
api calls. I am getting "Access is denied" message. Can someone throw some
light on this issue. Just for testing purpose, I opened the Local Security
Policy and gave permission to ASPNET user, Anonymous Logon user and Network
Service account for 'Setting System Time'. That didn't help.

I am running the application on Windows 2003 server running as a standalone
server.

1. Is there any other way of setting the system time without resorting to
PInvoke in .NET. Still better might be if you have some code sample that
specifically deals with the security stuff.

2. Also I want to execute an external program (isql, to dump a text file
into database table) thru Process.Start() call. It also fails with access
denied. My question is how can I elevate my previlege without elevating the
previlege of application pool.

Thanks and I appreciate your time and effort in this regard

Aravind.
 

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

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,619
Members
45,314
Latest member
HugoKeogh

Latest Threads

Top