Add "Run as administrator" to the File menu

Have a suggestion for "Everything"? Please post it here.
Post Reply
jo29
Posts: 35
Joined: Sat Sep 19, 2020 9:01 pm

Add "Run as administrator" to the File menu

Post by jo29 »

As of now, if you want to run Everything (occasionally) as admin, you have to locate a shortcut (or Everything.exe itself) and right-click to run as admin. I suggest adding an item to the File menu, just like Sysinternals tools.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Add "Run as administrator" to the File menu

Post by NotNull »

Unless you manually configured some rather exotic Everything settings, running the same instance as administrator will re-use the already running instance (using the credentials of the user that started the original Everything).


To test:
'CTRL + SHIFT + click' the Everything icon in the taskbar. That will try to run Everything elevated ("run as administrator")
Does the titlebar say "Administator" in your case?
jo29
Posts: 35
Joined: Sat Sep 19, 2020 9:01 pm

Re: Add "Run as administrator" to the File menu

Post by jo29 »

I don't have Everything in the taskbar : )
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Add "Run as administrator" to the File menu

Post by NotNull »

You can test the same behaviour in many ways, This was the easiest one.
jo29
Posts: 35
Joined: Sat Sep 19, 2020 9:01 pm

Re: Add "Run as administrator" to the File menu

Post by jo29 »

I run Everything UI in the background. Whenever I try to run Everything as admin, it still shows as user-level in the process manager. I have to click File > Exit and run it as admin (using the mentioned shortcut or by right-clicking).

But I still can't see how this is relevant to my suggestion :)
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Add "Run as administrator" to the File menu

Post by NotNull »

jo29 wrote: Wed Dec 13, 2023 2:28 pm But I still can't see how this is relevant to my suggestion
If you want to start "admin-Everything" from inside a running "user-Everything", it will start a "user-Everything" instead.
jo29
Posts: 35
Joined: Sat Sep 19, 2020 9:01 pm

Re: Add "Run as administrator" to the File menu

Post by jo29 »

It must be possible in some way since Process Explorer/Autoruns/etc do it.
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add "Run as administrator" to the File menu

Post by void »

I have added /restart-as-admin search command for the next alpha update.

I would like to avoid adding this to the UI to prevent users from accidentally running as admin.
Everything shouldn't run as admin unless you know what you are doing.

You will be able to add /restart-as-admin as a bookmark and bind a key.

Thank you for the suggestion.



Once running as admin, there's no easy way to restart as a standard user.
You'll have to manually exit and restart Everything.
jo29
Posts: 35
Joined: Sat Sep 19, 2020 9:01 pm

Re: Add "Run as administrator" to the File menu

Post by jo29 »

I would like to avoid adding this to the UI to prevent users from accidentally running as admin.
Understandable. I have a small suggestion: if I add a search command to the bookmarks, can it automatically "press" enter?
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add "Run as administrator" to the File menu

Post by void »

Yes, opening a bookmark with a search command doesn't set your search and executes the specified search command.
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Add "Run as administrator" to the File menu

Post by void »

Everything 1.5.0.1362a adds a /restart-as-admin search command.

To create a bookmark to restart as administrator:
  • In Everything 1.5, from the Bookmarks menu, click Add to bookmarks....
  • Change the Name to: Restart as administrator
  • Change the Search to: /restart-as-administrator
  • Click OK.
Post Reply