1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

running program from command line as administrator

Discussion in 'Windows 7' started by gib88, Sep 13, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. gib88

    gib88 Thread Starter

    Joined:
    Aug 18, 2005
    Messages:
    185
    Hello,

    How can I run a program from the command line as an administrator. I'm looking for a command line equivalent to right-clicking on the program icon and choosing "Run as Administrator".
     
  2. gurutech

    gurutech

    Joined:
    Apr 23, 2004
    Messages:
    2,959
    runas /user:domain\administrator "path-to-application"
     
  3. gib88

    gib88 Thread Starter

    Joined:
    Aug 18, 2005
    Messages:
    185
    Thanks gurutech
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1068871