Vista command line error - requires elevation

Sharky Forums


Results 1 to 4 of 4

Thread: Vista command line error - requires elevation

  1. #1
    Tiger Shark
    Join Date
    Dec 2000
    Location
    Hilton Head, SC, USA
    Posts
    893

    Question Vista command line error - requires elevation

    I was trying to do a simple ipconfig /release from the command line and Vista returned:
    "The requested operation requires elevation."

    Anybody know what I have to do to elevate my privileges at the Vista command line?
    ---

    Workstation:
    Supermicro P4SCT
    Intel P4 3ghz 800mhz fsb
    512 x 2 PC3200 cas 2.5
    1024 x 2 PC3200 cas 2.5
    RAID 0 X2 WD Raptor X boot drive
    nVidia Geforce 7950 GT 512MB AGP 8X
    ConnectCom 64bit 66mhz PCI-X Fibre Channel Card
    Creative Sound Blaster X-Fi XtremeGamer Fatal1ty Pro
    Killer K1 nic card
    Microsoft Windows Vista Ultimate 32bit
    Gentoo 2.6.26-r5
    Laptop:
    Compaq Presario F500
    Windows Vista Ultimate 64bit

  2. #2
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    Enter the command from the run box. It will automatically be elevated to have administrative permissions.

    Another option is to use the CMD line runas ...

  3. #3
    Tiger Shark
    Join Date
    Dec 2000
    Location
    Hilton Head, SC, USA
    Posts
    893
    Quote Originally Posted by ua549
    Enter the command from the run box. It will automatically be elevated to have administrative permissions.

    Another option is to use the CMD line runas ...
    is there no way around this on the actual command line? Like a sudo or su to root with a password?
    ---

    Workstation:
    Supermicro P4SCT
    Intel P4 3ghz 800mhz fsb
    512 x 2 PC3200 cas 2.5
    1024 x 2 PC3200 cas 2.5
    RAID 0 X2 WD Raptor X boot drive
    nVidia Geforce 7950 GT 512MB AGP 8X
    ConnectCom 64bit 66mhz PCI-X Fibre Channel Card
    Creative Sound Blaster X-Fi XtremeGamer Fatal1ty Pro
    Killer K1 nic card
    Microsoft Windows Vista Ultimate 32bit
    Gentoo 2.6.26-r5
    Laptop:
    Compaq Presario F500
    Windows Vista Ultimate 64bit

  4. #4
    Great White Shark
    Join Date
    Nov 2000
    Posts
    21,595
    runas does it.

    Code:
    RUNAS USAGE:
    
    RUNAS [ [/noprofile | /profile] [/env] [/savecred | /netonly] ]
            /user:<UserName> program
    
    RUNAS [ [/noprofile | /profile] [/env] [/savecred] ]
            /smartcard [/user:<UserName>] program
    
    RUNAS /trustlevel:<TrustLevel> program
    
       /noprofile        specifies that the user's profile should not be loaded.
                         This causes the application to load more quickly, but
                         can cause some applications to malfunction.
       /profile          specifies that the user's profile should be loaded.
                         This is the default.
       /env              to use current environment instead of user's.
       /netonly          use if the credentials specified are for remote
                         access only.
       /savecred         to use credentials previously saved by the user.
                         This option is not available on Windows Vista Home or Windows Vista Starter Editions
                         and will be ignored.
       /smartcard        use if the credentials are to be supplied from a
                         smartcard.
       /user             <UserName> should be in form USER@DOMAIN or DOMAIN\USER
       /showtrustlevels  displays the trust levels that can be used as arguments
                         to /trustlevel.
       /trustlevel       <Level> should be one of levels enumerated
                         in /showtrustlevels.
       program         command line for EXE.  See below for examples
    
    Examples:
    > runas /noprofile /user:mymachine\administrator cmd
    > runas /profile /env /user:mydomain\admin "mmc %windir%\system32\dsa.msc"
    > runas /env /user:[email protected] "notepad \"my file.txt\""
    
    NOTE:  Enter user's password only when prompted.
    NOTE:  /profile is not compatible with /netonly.
    NOTE:  /savecred is not compatible with /smartcard.
    Otherwise login with administrative privileges.

Posting Permissions

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