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

Author Topic: shutdown from batch file in xp limited account?  (Read 6170 times)

0 Members and 1 Guest are viewing this topic.

chin

    Topic Starter


    Rookie

    shutdown from batch file in xp limited account?
    « on: February 22, 2008, 01:10:39 PM »
    Hi,

    I tried shutdown -s in a batch file from my limited account but it's telling me a required privilege is not held by the client. Is there a way I can elevate my privileges specifically for this batch so it will shutdown the computer without having to drag the batch file into a privileged command prompt. Obviously, if I were going to do that I could more easily go to start > turn off computer.

    Thanks for your time.

    chin


    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: shutdown from batch file in xp limited account?
    « Reply #1 on: February 22, 2008, 06:22:49 PM »
    without having to drag the batch file into a privileged command prompt.

    How did you create this privileged command prompt? You can use the runas command to run a job using more privileged credentials. Note: you cannot supply the password on the command line and the password must not be blank.

    runas /? at the command prompt will give you all the gory details.

     8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein