Extended run as (administrator) function

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Extended run as (administrator) function

Post 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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Couldn't you use the runas command to run a program as a different user?
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post 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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50856
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post 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...
Author of Total Commander
https://www.ghisler.com
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post 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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post 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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply