Welcome!

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

SignUp Now!

BTM, elevated, console window caption?

May
12,834
163
I have an AutoHotKey hotkey that uses schtasks.exe to start a task which starts TCC (highest available privileges) [this avoids the UAC prompt] and that non-transient TCC executes admin.btm. Admin.btm sets titleprompt and changes the prompt from green to read, like this.
Code:
activate "%_wintitle"
set titleprompt=Administrator - %titleprompt
prompt %@rereplace[32,31,%prompt]

Normally, when working in such a TCC, the caption is (for example)
Code:
Administrator -  24.02.49  [5008]  v:\

If I run a BTM in that TCC, the caption changes to
Code:
Admin: Administrator -  24.02.49  [5008]  v:\

... and changes back. I have no gripes. I'm just wondering what's going on there?
 
TCC always prefixes "Admin:" on the title for elevated sessions. (It used to prefix "Administrator:", like CMD does, but users were complaining about that taking up too much space on the title bar.)
But "Admin: " only shows when running a BTM.
 

Similar threads

Back
Top