Page 1 of 1

Run console as administrator

Posted: 2008-01-26, 19:35 UTC
by eugensyl
Many times, in Vista, is necessary to run As Administrator at the console.

Like in topic, now we can not start an internal command, like "cm_ExecuteDOS", As Administrator.

BTW, inside of TC, I think, is good to lance from command propt (command line) a command As Administrator (not an external executable file) with some shortcut, obviously.

Even than we like or not, Vista is comming over as. Now (begining of 2008) about 10% of visitors (of my favorites sites) have Vista. Is not relevant. Yet. But tomorrow?

Posted: 2008-01-27, 01:23 UTC
by StatusQuo
Support.

I don't know about Vista yet, but in Win2k the runas.exe command is quite inconvenient to integrate, e.g. it needs double quotes to be escaped:
runas /env /user:User@Domain.Microsoft.com "notepad \"My File.txt\""

Posted: 2008-01-29, 15:51 UTC
by Stance
Hello eugensyl,
I did a query in Google and had have these findings:
http://www.mydigitallife.info/2007/02/17/how-to-open-elevated-command-prompt-with-administrator-privileges-in-windows-vista/
Nine methods to run a "Elevated Command Prompt". :o

Daniel Moth said:
No hacks, but if you want to live dangerously, just launch explorer elevated and then any file you double click will open its associated application elevated too...

Posted: 2008-01-29, 20:42 UTC
by eugensyl
Stance wrote:Hello eugensyl,
I did a query in Google and had have these findings:
http://www.mydigitallife.info/2007/02/17/how-to-open-elevated-command-prompt-with-administrator-privileges-in-windows-vista/
Nine methods to run a "Elevated Command Prompt". :o

Daniel Moth said:
No hacks, but if you want to live dangerously, just launch explorer elevated and then any file you double click will open its associated application elevated too...
Thanks!
Realy interesting. In fact it should be enough in TC to lance "cmd" (with quotation marks) in command line or into an external command.

Posted: 2008-01-29, 23:11 UTC
by karlchen
Hi, Eugen. Hi, guys.

I assume you might be interested in the Script Elevation PowerToys for Windows Vista.
The Powertoy holds a small script "elevate.cmd" (which uses "elevate.vbs"). You prefix "elevate" to the normal command line and will be asked if you really wish to execute the commandline in elevated mode.

(Do not ask me for any further details. Have not checked it out myself, have merely read the article and the script files.)

Karl