running dos command under admin account

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default running dos command under admin account

    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?
    carl Guest

  2. Similar Questions and Discussions

    1. Flash in XP Admin Account not Limited Account
      I am running Windows XP Pro & IE 7. I have set up 2 accounts: An Administrator Account and a Limited Account for the family. Flash works when...
    2. Account Locked Out - Cold Fusion Application Service running as Active Directory Domain Account
      Using Cold Fusion 7 Standard w/ IIS6. Cold Fusion Application Service is running as a domain account to access IIS home directory on another...
    3. Multi command files and running them from the command prompt
      Use the -td§ option . Details are in the section titled Command Line Processor Options in the Command Reference. "Derek Clarkson"...
    4. Local Admin Account Locked after Sysprep
      I installed all my applications and then ran sysprep to reseal the drive so it could imaged. Everything went great until I entered the product key...
    5. New Install Created Admin Account
      I just reinstalled Win XP Pro from on a formatted drive. It created the Admin account, even though I didn't ask for it. Is there a default...
  3. #2

    Default RE: running dos command under admin account

    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?
    |

    Lewis Wang [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139