running dos command under admin account

C

carl

Hello, I am trying to execute a batch file from my asp.net
app. To execute the command in this file, it will need
domain admin rights.

I know I could set that up in machine.config, but that
would make every .net app run high priviledged.

How do I make just this single execution tied to an admin
account?
 
L

Lewis Wang [MSFT]

Hi Carl,

You may implement impersonation in the ASP.NET application to get higher
privilege in order to execute the command. The following KB article
described how to do impersonation.

INFO: Implementing Impersonation in an ASP.NET Application
<http://support.microsoft.com/?id=306158>

Hope this helps.

Best regards,
Lewis

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "carl" <[email protected]>
| Sender: "carl" <[email protected]>
| Subject: running dos command under admin account
| Date: Thu, 21 Aug 2003 14:05:29 -0700
| Lines: 9
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcNoJ/NP4nOLoWEbTmiJJ+LGdFu3ug==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.framework.aspnet.security
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.security:6385
| NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
|
| Hello, I am trying to execute a batch file from my asp.net
| app. To execute the command in this file, it will need
| domain admin rights.
|
| I know I could set that up in machine.config, but that
| would make every .net app run high priviledged.
|
| How do I make just this single execution tied to an admin
| account?
|
 

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,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top