Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Elevated tab

May
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 ?
 
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?
 
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.
 
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

Back
Top