monolithpl / stexbar

Windows Explorer extensions (or: what Microsoft forgot to implement in the Windows Explorer)
7 stars 4 forks source link

How to run administrative Console #195

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output?
- Run Console as Administrator

What version of the product are you using? On what operating system?
- latest StExBar on Win7 x64 and Win8 x64

Please provide any additional information below:
- I tried this in commands.ini:

commandline=c:\windows\system32\runas.exe /user:Administrator 
"c:\windows\system32\cmd.exe /k cd /d \"%curdir\""

It works, but entering the password each time is not an option, as it is quite 
long.

Any hints?

Thank you.

Original issue reported on code.google.com by bobby...@gmail.com on 12 Jun 2012 at 7:40

GoogleCodeExporter commented 9 years ago
hold down the windows key and then click on the console.
If the windows key is pressed, any command will run as an admin.

circumventing entering the password however is not an option: you're asking for 
a security breach. If that were possible, UAC would not make sense since its 
hole purpose is that it can not be circumvented.

Original comment by tortoisesvn on 12 Jun 2012 at 7:46

GoogleCodeExporter commented 9 years ago
Windows key works, thanks.

But: circumventing entering the password is not a security breach!
UAC does exactly that, it allows me to just click "ok" instead of entering a 12 
char long password.
That's what UAC is for.
runas.exe /user:Administrator cmd.exe ALWAYS asks for the password, instead of 
displaying the UAC dialog.

Original comment by bobby...@gmail.com on 12 Jun 2012 at 8:31

GoogleCodeExporter commented 9 years ago
So "runas" asks for the password. Nothing StExBar can do about that.

Original comment by tortoisesvn on 13 Jun 2012 at 5:48

GoogleCodeExporter commented 9 years ago
Yeah - that's why I asked ;-)

Original comment by bobby...@gmail.com on 13 Jun 2012 at 12:40