Windows Vista Forums

Elevation from Command Line?

  1. #1


    Puppy Breath Guest

    Re: Elevation from Command Line?

    I haven't tried it. But intuitively it seems if you click Start > All
    Programs, right-click Command Prompt, and choose Run As Administrator, you
    should be good to go. I think you'll be a system Admin rather than a member
    of the Local Admins group.

    "ionixuk" <ionixuk@discussions.microsoft.com> wrote in message
    news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
    > Hey there, anyone know how to run a command from CMD in elevated mode (or
    > whatever it's called..!)
    >
    > For example, how would I run SFC /SCANNOW with elevated permissions direct
    > from the command line? I can't be bothered with doing all the
    > create-a-shortcut-and-tick-those-boxes things...



      My System SpecsSystem Spec

  2. #2


    ionixuk Guest

    Elevation from Command Line?

    Hey there, anyone know how to run a command from CMD in elevated mode (or
    whatever it's called..!)

    For example, how would I run SFC /SCANNOW with elevated permissions direct
    from the command line? I can't be bothered with doing all the
    create-a-shortcut-and-tick-those-boxes things...

      My System SpecsSystem Spec

  3. #3


    ionixuk Guest

    Re: Elevation from Command Line?

    Ahaaa cunning.... thanks...!!

    Anyone aware of a command like runas or runelev or runaway or something like
    that?

    "Puppy Breath" wrote:

    > I haven't tried it. But intuitively it seems if you click Start > All
    > Programs, right-click Command Prompt, and choose Run As Administrator, you
    > should be good to go. I think you'll be a system Admin rather than a member
    > of the Local Admins group.
    >
    > "ionixuk" <ionixuk@discussions.microsoft.com> wrote in message
    > news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
    > > Hey there, anyone know how to run a command from CMD in elevated mode (or
    > > whatever it's called..!)
    > >
    > > For example, how would I run SFC /SCANNOW with elevated permissions direct
    > > from the command line? I can't be bothered with doing all the
    > > create-a-shortcut-and-tick-those-boxes things...

    >
    >


      My System SpecsSystem Spec

  4. #4


    Kerry Brown Guest

    Re: Elevation from Command Line?

    Create a shortcut to cmd.exe and in the properties pick Always run as
    administrator. Whenever you run this shortcut it will be elevated.

    --
    Kerry Brown
    Microsoft MVP - Shell/User
    http://www.vistahelp.ca


    "ionixuk" <ionixuk@discussions.microsoft.com> wrote in message
    news:93B29CDD-ED23-4652-9CF5-39712466059F@microsoft.com...
    > Ahaaa cunning.... thanks...!!
    >
    > Anyone aware of a command like runas or runelev or runaway or something
    > like
    > that?
    >
    > "Puppy Breath" wrote:
    >
    >> I haven't tried it. But intuitively it seems if you click Start > All
    >> Programs, right-click Command Prompt, and choose Run As Administrator,
    >> you
    >> should be good to go. I think you'll be a system Admin rather than a
    >> member
    >> of the Local Admins group.
    >>
    >> "ionixuk" <ionixuk@discussions.microsoft.com> wrote in message
    >> news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
    >> > Hey there, anyone know how to run a command from CMD in elevated mode
    >> > (or
    >> > whatever it's called..!)
    >> >
    >> > For example, how would I run SFC /SCANNOW with elevated permissions
    >> > direct
    >> > from the command line? I can't be bothered with doing all the
    >> > create-a-shortcut-and-tick-those-boxes things...

    >>
    >>



      My System SpecsSystem Spec

  5. #5


    ionixuk Guest

    Re: Elevation from Command Line?

    Thanks K - yup someone gave me this one earlier.

    I'm most interested in knowing how to elevate from just one command tho - it
    also seems to me to be the safer option, especially, for example, if you're
    doing it from a command line batch script, or something...

    "Kerry Brown" wrote:

    > Create a shortcut to cmd.exe and in the properties pick Always run as
    > administrator. Whenever you run this shortcut it will be elevated.
    >
    > --
    > Kerry Brown
    > Microsoft MVP - Shell/User
    > http://www.vistahelp.ca
    >
    >
    > "ionixuk" <ionixuk@discussions.microsoft.com> wrote in message
    > news:93B29CDD-ED23-4652-9CF5-39712466059F@microsoft.com...
    > > Ahaaa cunning.... thanks...!!
    > >
    > > Anyone aware of a command like runas or runelev or runaway or something
    > > like
    > > that?
    > >
    > > "Puppy Breath" wrote:
    > >
    > >> I haven't tried it. But intuitively it seems if you click Start > All
    > >> Programs, right-click Command Prompt, and choose Run As Administrator,
    > >> you
    > >> should be good to go. I think you'll be a system Admin rather than a
    > >> member
    > >> of the Local Admins group.
    > >>
    > >> "ionixuk" <ionixuk@discussions.microsoft.com> wrote in message
    > >> news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
    > >> > Hey there, anyone know how to run a command from CMD in elevated mode
    > >> > (or
    > >> > whatever it's called..!)
    > >> >
    > >> > For example, how would I run SFC /SCANNOW with elevated permissions
    > >> > direct
    > >> > from the command line? I can't be bothered with doing all the
    > >> > create-a-shortcut-and-tick-those-boxes things...
    > >>
    > >>

    >
    >


      My System SpecsSystem Spec

Elevation from Command Line?

Similar Threads
Thread Forum
Command Prompt doesnt seem to recognize the command line!!
Hello, I'm trying to split a .flv file by using flvparse, which is a Windows-only, command-line interface tool. I did get through to the directory...
Network & Sharing
Elevation from command line
Greetings all, I was wondering if there is a way to elevate a process from the command line, be it PowerShell or simply CMD but without causing...
PowerShell
Running a command from inside a script, command line is corrupted
Hello, I am trying to give Powershell a chance, since it seems like it may have some promise. I have this powershell script that needs to run...
PowerShell
command line
I had trouble running an app on a 64 bit version some time ago. This app used a 32 bit DLL. I read somewhere and found a command that is typed from...
Vista General
What is the command line command for unzipping files?
On a stock Vista box we need to be able to extract files from a zip file from a command line batch script. I can't seem to find a command for this....
Vista General
Command Line Ren (Rename) command broken?
I'm having trouble with the REN command with wild cards as used from the command prompt. For example, in the REN command help, it says: "For...
Vista General
XP command line
I have a simple, beginner's question. I have a Vista computer wired to an XP PC. On the Vista machine when I do the WindowsKey+R, cmd, I get the...
Vista networking & sharing