Code: Select all
C:\Windows\System32\runas.exe /netonly /user:DOMAIN\username "program"
Moderators: white, Hacker, petermad, Stefan2
Code: Select all
C:\Windows\System32\runas.exe /netonly /user:DOMAIN\username "program"
Yes, unfortunately it doesn't work. No matter what you put in "title", it isn't shown in TCMD title.
I'll give it a try. Even if there's no available environment variable to tell them apart, I can set a new one just before starting TCMD. I didn't know that the option supports them.ghisler(Author) wrote: ↑2019-02-21, 15:16 UTC Aren't there any environment variables which are different between the two?
TitleExtraText supports environment variables like %USERNAME%. Just run cmd.exe and use the command
set
to view a list of all environment variables.
Well, it worked. I just had to create a batch script to set the variable and call TCMD, and then call that script using runas.exe (because runas.exe starts a new environment and, thus, any variable created before it won't be available in that new environment).amach wrote: ↑2019-02-26, 15:52 UTCI'll give it a try. Even if there's no available environment variable to tell them apart, I can set a new one just before starting TCMD. I didn't know that the option supports them.ghisler(Author) wrote: ↑2019-02-21, 15:16 UTC Aren't there any environment variables which are different between the two?
TitleExtraText supports environment variables like %USERNAME%. Just run cmd.exe and use the command
set
to view a list of all environment variables.
Thanks a lot.