Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: runas  (Read 2117 times)

0 Members and 1 Guest are viewing this topic.

dworley

    Topic Starter


    Beginner

    Thanked: 1
    runas
    « on: March 02, 2007, 04:11:45 PM »
    Hello all,

    I am running "regedit" from a computer that is not logged in with administrator priveliges in Windows XP Professional. The computer must stay logged into the profile called "PUser" (it is a power user profile... creative name, I know)
    I am running regedit from a batch file, and this line of code works beautifully:

    "runas /user:localhost\administrator regedit"

    the only drawback is that it always prompts me for "administrator"s password. I want to include the password somewhere in the command line or something like that so that it automatically logs in. The security of this obvious availability of the password is not a problem.

    Thanks,
    -darryl
    Have you forgotten?

    pcdoc4christ

    • Guest
    Re: runas
    « Reply #1 on: March 03, 2007, 10:11:50 AM »
    Sounds like a good question for the programmers forum.  Try posting it there:
    http://www.computerhope.com/cgi-bin/yabb/YaBB.cgi?board=10

    If you do, please leave a note at this forum that this is what you did, as duplicate posts get under our skin!
     ;)

    dworley

      Topic Starter


      Beginner

      Thanked: 1
      Re: runas
      « Reply #2 on: March 05, 2007, 12:43:22 PM »
      Have you forgotten?