Gain admin rights

Features wanted...
Chris21
Posts: 38
Joined: 16 Aug 2012 00:21

Gain admin rights

Post by Chris21 »

Hi,
it would be nice to have an option to gain Admin rights if needed. By now I have to (re)start XYplorer to achieve this.

Chris

Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Gain admin rights

Post by Filehero »

Bump.

I'm about to start to play around with VM's to evaluate their practical benefits in daily use ("secure" boxes, development etc). In particular I'm interested to find a good balance between sealing and keeping a basic ease of use. One approach will be to associate one host folder to each vm to aggregate vm specific sets of host folders underneath using symlinks.

Since my host account is a standard one w/o admin rights and UAC all the way up (a setup I still consider a godsend, btw) XY runs unelevatedly by default. I'm afraid, having to start an additional elevated instance each time I want to create a symlink will become painful quite soon.

Hence: is it a major deal to add a "ask-for-admin-rights"-dialog each time it is required during an unelevated session?


Cheers,
Filehero

admin
Site Admin
Posts: 65236
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Gain admin rights

Post by admin »

Needs research.

admin
Site Admin
Posts: 65236
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Gain admin rights

Post by admin »

OK: On-demand-elevation would be possible but would be mean to ...

a) restart the app "as admin" (after saving all settings) = not really cool IMO.
b) or to pack all operations that need elevated privileges into a separates helper exe = also uncool.

So, why don't you simply run XY as admin right away?

Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Gain admin rights

Post by Filehero »

admin wrote:So, why don't you simply run XY as admin right away?
Because XY would exhibit the "wrong" session context with all user-specific paths pointing to the "wrong" targets.


Cheers,
Filehero

PS: Verdammt ist Dortmund gut ....

Chris21
Posts: 38
Joined: 16 Aug 2012 00:21

Re: Gain admin rights

Post by Chris21 »

Adding an option to restart XYplorer in elevated mode would be sufficient for me.

Filehero
Posts: 2721
Joined: 27 Feb 2012 18:50
Location: Windows 11@100%

Re: Gain admin rights

Post by Filehero »

Well I thought implementation would be more straight forward. Something like: OS throws some sort of catchable event upon which the famous dialog can be brought up. Naive me. I guess it's a VB6 thing, right?

I also think a) and b) are "uncool" in general. Clueless now - also with regard to my wish.


Cheers,
Filehero

admin
Site Admin
Posts: 65236
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Gain admin rights

Post by admin »

"wrong" session context ... hmm good point.

OS throws some sort of catchable event upon which the famous dialog can be brought up: Yes, I hoped to find something about this but no success. :| (Nothing to do with VB6) Some day I will see it...

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Gain admin rights

Post by highend »

The windows explorer isn't restarted when it requests admin rights nor does it use a special helper module, right? So there has to be a way to autoelevate a program after confirming the dialog...
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65236
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Gain admin rights

Post by admin »

highend wrote:The windows explorer isn't restarted when it requests admin rights nor does it use a special helper module, right? So there has to be a way to autoelevate a program after confirming the dialog...
Yes, I think so. But how?

highend
Posts: 14639
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Gain admin rights

Post by highend »

http://support.microsoft.com/kb/981778

There is even VB code available :)
One of my scripts helped you out? Please donate via Paypal

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Gain admin rights

Post by PeterH »

"Then, the original application restarts, running as an elevated administrator. "
Do you want XY to run elevated, or do you want a function (i.e. some piece of work) to be elevated?
For me I generally want XY to run non-elevated, and only if needed for some action I want to be able to allow it. This way I'm generally protected from making some (but destructive!) errors by accident.

Marco
Posts: 2354
Joined: 27 Jun 2011 15:20

Re: Gain admin rights

Post by Marco »

PeterH wrote:For me I generally want XY to run non-elevated, and only if needed for some action I want to be able to allow it. This way I'm generally protected from making some (but destructive!) errors by accident.
Same here.
My current workflow involves starting (upon logon) two instances of XY: one non-elevated and one elevated. The second one is used if and only if the first one hasn't enough rights to perform what's requested. Other than that, the elevated one always resides hidden in the tray.
So far this works, with little caveats, most notably:
- upon logoff I have to pay attention to what XY I close first, else I'll mess with saving settings;
- when I update XY, I have either to close elevated XY or perform update from within elevated XY.

Costs/benefits balance? I guess benefits outweight costs, so far.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Gain admin rights

Post by PeterH »

Marco wrote:My current workflow involves starting (upon logon) two instances of XY: one non-elevated and one elevated.
Sounds very reasonable.

It's not often that I use XY elevated - so I start it only when needed.
If I often would run both in parallel I for my part would use different .ini files, so both would be independant. But that's just a matter of habbits.

Maybe it would be helpful if we could "route" commands from the non-elevated to the elevated XY - or is this already possible? (Didn't follow that discussions close enough...)

admin
Site Admin
Posts: 65236
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Gain admin rights

Post by admin »

highend wrote:http://support.microsoft.com/kb/981778

There is even VB code available :)
I know this code. It restarts the app elevated. Not what we want. But maybe there is no other way. Hm.

Post Reply