Elevated tab

May 29, 2008
64
0
#1
I am trying to run an elevated console (cmd or tcc) in a tab, either by attach'ing or by "run /elevated /tab".
Neither work.
Is it possible, if so how ?
 
May 29, 2008
64
0
#3
Is there way to run a tab or start UNelevated.
I could then run TCMD as Administrator, run normal tabs unelevated and when needed run an elevated tab.
Would this work?
 

rconn

Administrator
Staff member
May 14, 2008
10,325
94
#4
Is there way to run a tab or start UNelevated.
I could then run TCMD as Administrator, run normal tabs unelevated and when needed run an elevated tab.
Would this work?
If Take Command is started unelevated, it is impossible (Windows restriction) for it to see or attach elevated tabs.

If Take Command is started elevated, it can attach unelevated console windows, but there's no way it can create its own unelevated tabs.
 
Mar 14, 2011
1
0
#5
I am trying to run an elevated console (cmd or tcc) in a tab, either by attach'ing or by "run /elevated /tab".
Neither work.
Is it possible, if so how ?
I'm not sure if this solution will help you, but I have a batch file (in my case, elevate.cmd) that launches an elevated version of the current console. It won't stay tabbed within TakeCommand, but it does launch quickly and easily from the command prompt. User Account Control still needs to be accepted, but this is a quick [ALT]-[TAB] and [ALT]-[Y].

The command in my elevate.cmd is:
Code:
start /elevated "%_cmdspec"
My tcstart.cmd also contains some quick code to change the prompt if the console is elevated. This is a useful reminder of elevation and runs whether the console is started from the command prompt or through a right-click, Run as administrator.

The relevant line from tcstart.cmd is:
Code:
IF "%_ELEVATED" == "1" PROMPT $e[1;37;5;41m$e[K## ELEVATED as %_WINUSER ##$_$e[1;32m[$P]
You'll needs ANSI Colors enabled in your TCC settings for this command to work.

Hopefully this goes someway to help achieve what you're looking for.

Cheers, Andrew