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?
Printable View
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?
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?Quote:
Originally Posted by ua549
runas does it.
Otherwise login with administrative privileges.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.