Elevated tab

May 29, 2008
64
0
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
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
12,406
152
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
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
 
Similar threads
Thread starter Title Forum Replies Date
CWBillow TCMD PowerShell Tab elevated Support 6
P Run as Admin tab in non-elevated Take Command session? Support 9
C How to? run a BTM in elevated, inv tcc tab window Support 9
x13 Check if process is elevated? Support 11
I TCC in Elevated mode? Support 6
vefatica BTM, elevated, console window caption? Support 4
vefatica START /elevated and PcaSvc? Support 5
D WAD START /ELEVATED "Title" /PGM "job.btm" Support 6
vefatica TCC window caption in elevated session? Support 5
M WAD /elevated failure... Support 13
M Start "/Elevated" failure... Support 3
C OT: Registry OPEN verb to start elevated... Support 2
vefatica Caption when running elevated? Support 4
M How to? Start a program on log on elevated abovenormal Support 5
M How to? /Elevated doesn't do it for me... Support 8
vefatica Elevated session and UpdateTitle? Support 3
Dan Glynhampton Problem with Start /elevated Support 2
vefatica _STARPID & @PID[] after START /ELEVATED Support 10
Jay Sage How to Run Non-Elevated From Elevated TCC Support 1
J start /elevated /inv not invisible Support 4
D Environment in elevated process Support 1
vefatica Tab (^t) in @FILEWRITE's text Support 2
D TCC tab detaching & restarting Support 3
Joe Caverly Changing the TAB key Support 10
fpefpe bash.exe as a tab Support 0
C How to? Mouse support in WSL when in Take Command Tab Support 2
P How to enable \ with tab completion Support 4
Joe Caverly DrawVLine results different in TCMD tab and detached TCC Support 11
Joe Caverly Tab from clipboard Support 6
Joe Caverly Clone a TCC Tab Support 9
R New Cloud Storage Tab in TCC options causing problems Support 0
CWBillow PowerShell tab as Admin Support 2
vefatica TYPE resets console tab settings Support 14
CWBillow Take Command tab as PowerShell Support 3
Fross Tab Question Support 6
CWBillow TCMD Tab Defs Support 4
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
Emilio III TCMD Tab titles on Insider Windows Support 2
CWBillow Powershell tab in TCMD? Support 2
Phileosophos Startup tab layout Support 2
M How to? How to set a default TITLE for newly opened tab? Support 2
R How to? Change TCMD tab font size in window menu Support 3
D Get tab position and size Support 6
C Running PowerShell_ISE in a Tab Support 7
D How cut in TCC tab window Support 5
D Take Command tab only uses half of window Support 1
rps Tab clone problem Support 2
C MONITOR commands alter tab title when triggered Support 0
D Tab completion differences with cmd.exe Support 3
H lua Causes Take Command Tab to Exit Support 5

Similar threads