Run console as administrator

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Run console as administrator

Post 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?
My Best Wishes,

Eugen
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post 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\""
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post 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...
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post 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.
My Best Wishes,

Eugen
User avatar
karlchen
Power Member
Power Member
Posts: 4605
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post 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
Post Reply