RE: running dos command under admin account

From: Lewis Wang [MSFT] (v-lwang_at_online.microsoft.com)
Date: 08/22/03


Date: Fri, 22 Aug 2003 07:01:19 GMT


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" <manofsteele@311.com>
| Sender: "carl" <manofsteele@311.com>
| Subject: running dos command under admin account
| Date: Thu, 21 Aug 2003 14:05:29 -0700
| Lines: 9
| Message-ID: <04d001c36827$f34f7570$a301280a@phx.gbl>
| 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?
|



Relevant Pages

  • Re: Returning intermediate results from a stored procedure
    ... "Carl Imthurn" wrote in message ... you can add RAISERROR command in between and use the ... > NOWAIT option to the RAISERROR command. ... specifying the adAsyncExecute option for the Execute method. ...
    (microsoft.public.sqlserver.programming)
  • Re: Returning intermediate results from a stored procedure
    ... "Carl Imthurn" wrote in message ... you can add RAISERROR command in between and use the ... > NOWAIT option to the RAISERROR command. ... specifying the adAsyncExecute option for the Execute method. ...
    (microsoft.public.vb.general.discussion)
  • Re: Question on impersonation
    ... I have that below in my code the problem is that after impersonation I ... execute. ... We now have the need to run some command line items. ... > Private Sub ImpersonateAdmin ...
    (microsoft.public.dotnet.languages.vb)
  • [Full-Disclosure] Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit ... Connection closed by foreign host. ... think what we want to execute. ...
    (Full-Disclosure)
  • Advanced usage of system() function.
    ... and call its arguments as a command for shell. ... as we can see we still didnt get what we want (typing exit we are ... Connection closed by foreign host. ... think what we want to execute. ...
    (Bugtraq)