TCC window caption in elevated session?

May 20, 2008
11,538
103
Syracuse, NY, USA
I have the same TCC 19.10.46 and very similar set-ups at home and at work. The TCSTART.BTM files and the TITLEPROMPT envvar are identical and both have "UpdateTitle" unchecked. In both places, I can start an elevated session by using SCHTASKS.EXE to run an on-demand, highest privileges task with action "[path\]tcc.exe /q". And of course, I can also right-click on TCC.EXE and choose "Run as administrator".

But the behavior of the console's caption is very different on the two computers.

At home, an elevated session started by either of the means mentioned above has, as caption, only my TITLEPROMPT (just like an ordinary session).

At work, an elevated session started with SCHTASKS has the caption "Administrator: taskeng.exe". And one started with right-click - Run as admin has the caption "Administrator: <my titleprompt>".

So, I have two questions. Why is there no elevated indication in the caption at home? And, at work, how does "taskeng.exe" (which I know is used to run a task) make it into the caption?
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
There's only three possible reasons why the "Administrator:" text isn't in the titlebar:

1) You've defined a default session title
2) TCC can't load the language dll
3) TCC doesn't have the rights to query the process token (OpenProcessToken / GetTokenInformation)

I suspect your particular issue is due to #1.
 
May 20, 2008
11,538
103
Syracuse, NY, USA
There's only three possible reasons why the "Administrator:" text isn't in the titlebar:

1) You've defined a default session title
2) TCC can't load the language dll
3) TCC doesn't have the rights to query the process token (OpenProcessToken / GetTokenInformation)

I suspect your particular issue is due to #1.
What is, and how would I define, a "default session title"? I've used TITLEPROMPT and UpdateTitle=No since they were available.
 
May 20, 2008
11,538
103
Syracuse, NY, USA
Any other ideas? Where do you suppose it's getting the text "taskeng.exe" (when started elevated as a run-on-demand task)? It's not inheriting it from a console since taskeng.exe, TCC's parent, is a GUI app.
 
Similar threads
Thread starter Title Forum Replies Date
R How do I get a Git Bash shell to appear in TCC window? Support 7
T TCC Window Background Color Anomaly Support 9
E How to change window title tcmd window - not tcc window Support 1
James Miller tcc shell window does not disappear Support 18
D How cut in TCC tab window Support 5
S Paste in TCC/TCMD window is very slow [v20.0.22] Support 13
C How to? run a BTM in elevated, inv tcc tab window Support 9
T 64 bit TCCLE appears to crash when opening tcc.exe from within tcc.exe window Support 7
Joe Caverly VIEW window in a TCC tab window problems Support 5
Joe Caverly New Tab In TCMD Changes TCC Window Size Support 1
P TPipe relaunches TCC window and 4start, etc Support 7
S WAD BDEBUGGER command changes window title to "TCC Prompt" Support 4
S WAD Invoking BDEBUGGER changes window title to "TCC Prompt" Support 7
M Another simple question re. Take Command/TCC window witdth in characters... Support 16
S Smooth scrolling in a TCC window Support 9
vefatica WINDOW (and more closing TCC woes) Support 15
newbie Cannot make a btm/tcc.exe window wider Support 4
mikea TCC: History window sizes; other config options Support 16
T Starting a process blocks TCC window... Support 2
CWBillow TCC Window size Support 5
D TCC - Full Screen/History window conflict - workaround? Support 4
A Can you set an image file 'tag' with TCC/4NT? Support 2
P PSHELL not working in TCC 26 Support 9
vefatica SCRIPT makes TCC disappear. Support 16
MickeyF TCC suddenly crashing (not TCC's fault) Support 2
Z CMDDebug - TCC unknown command Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT 28.02.17 Support 0
vefatica TCC startup: /IP not honored after /K Support 1
MickeyF TCC crashing when copying multiple files (now resolved) Support 6
C COMSPEC constantly reset to TCC.EXE Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
C How to? starting TCC/TCMD v25 Support 2
CWBillow TCC and TCMD in Powershell Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
Alpengreis Fixed Crash after copy dialog with big TCC.exception.log Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
L FTYPE in TCC, less quirky than in cmd.exe Support 3
V Set path permanently from within TCC? Support 3
DrusTheAxe Runaway TCC.exception.log filling drive Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
Joe Caverly tcc.exception.log Support 3
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
vefatica SCRIPT ... TCC disappears Support 2
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
Jesse Heines Access Denied errors in TCC 27 Support 9
fpefpe How to? tcc inifile (%_ininame) Support 3
M How to? Black TCC Prompt Support 2

Similar threads