Page 1 of 1

Extended run as (administrator) function

Posted: 2015-10-29, 19:22 UTC
by Dalai
Hey there,

here's another small feature request for TC 9.0, which should be fast and easy to implement.

Currently putting an asterisk in front of a command of a button bar button or the start menu launches the command as different user (XP and older) or as administrator (Vista+). This works on any NT-style Windows system, but has some drawback, which is a major one for me: it doesn't work on systems with UAC disabled on Vista and higher. Furthermore, there's no way to launch the command as different user, it always uses an administrator, which is not intended in every case.

Here's the proposal: Extend the feature in a way that using two asterisks in front of the command uses the verb "runasuser" - instead of "runas" - on Vista and higher. That way, the command can be launched as different user (not necessarily an administrator), and it works with UAC disabled.

Regards
Dalai

Posted: 2015-11-02, 10:27 UTC
by ghisler(Author)
Couldn't you use the runas command to run a program as a different user?

Posted: 2015-11-02, 11:50 UTC
by Dalai
No, you have to specify the username as a parameter to the CMD runas. I want the simple RunAs GUI dialog from XP, which is still present in Vista and higher. In that dialog I can specify the full credentials (username and password), so I can run programs under different users who differ from time to time.

Regards
Dalai

Posted: 2015-11-05, 14:03 UTC
by ghisler(Author)
I have added this now for test purposes, but it's not so nice: It doesn't seem to remember the last entered user name, so I have to enter it each time...

Posted: 2015-11-05, 14:45 UTC
by Dalai
Yes, I know. MS made this RunAs (different user) dialog far worse than in previous Windows versions - removing any selection of accounts existing on the system - because they were and still are pushing UAC.

I don't mind if TC would use its own dialog to remember the user name. I know it's there, but isn't used at all in Vista and above, unfortunately, which is especially annoying with UAC disabled. I just thought it might be easier to let Windows ask for the credentials. It's your call.

Regards
Dalai

Posted: 2016-06-23, 20:01 UTC
by Dalai
Thank you very much for adding this to TC9 :D! The two asterisks even work on XP, so now I can use a single starter menu entry to run any program as different user, on XP and Win7. Nice!

Regards
Dalai