Run program without admin privilege in admin mode Everything
Run program without admin privilege in admin mode Everything
Can you please give a option to run programs from within result list as normal user even in admin mode Everything process?
Or just give an option that let user to define a custom command to run, there are many tools can do this, so that users can archive this by calling a custom tool program.
Or just give an option that let user to define a custom command to run, there are many tools can do this, so that users can archive this by calling a custom tool program.
Re: Run program without admin privilege in admin mode Everything
You should use the Everything Service to avoid running Everything "as Admin".
Re: Run program without admin privilege in admin mode Everything
The service seems having some problem, the monitoring can not reflect the changes of filesystem instantly.
I've encountered many times that the result list remains no change while filesystem changes(file created, deleted, etc.), even manually refresh(Press F5) can not make result list be updated.
I've encountered many times that the result list remains no change while filesystem changes(file created, deleted, etc.), even manually refresh(Press F5) can not make result list be updated.
Re: Run program without admin privilege in admin mode Everything
The service is not resposible for updating the index, ist only for having the necessary rights.qaqz111 wrote:The service seems having some problem, the monitoring can not reflect the changes of filesystem instantly.
I've encountered many times that the result list remains no change while filesystem changes(file created, deleted, etc.), even manually refresh(Press F5) can not make result list be updated.
So let the service running and alos start Everything with Windows start.
This way you will have the actual contents as fast as possible.
Re: Run program without admin privilege in admin mode Everything
I have found that solution for me.
I already have running a AutoHotkey script running as administrator (i start it automatically with windows task scheduler):
_______________
#if WinActive("ahk_exe Everything.exe") ; Everything is active
F7:: ; Hotkey
oldclipboard := ClipboardAll ; Save the (real) clipboard
sleep, 100
sendinput, ^+c
ClipWait, 1
sendinput, #r ; run file
WinWaitActive, ahk_class #32770, , 1 ; 1 second timeout
if ErrorLevel
{
return
}
else
{
sendinput, ^v{enter}
return
}
clipboard := oldclipboard ; Restore old (real) clipboard
return
_______________
The file will open from "run" without admin privileges.
I already have running a AutoHotkey script running as administrator (i start it automatically with windows task scheduler):
_______________
#if WinActive("ahk_exe Everything.exe") ; Everything is active
F7:: ; Hotkey
oldclipboard := ClipboardAll ; Save the (real) clipboard
sleep, 100
sendinput, ^+c
ClipWait, 1
sendinput, #r ; run file
WinWaitActive, ahk_class #32770, , 1 ; 1 second timeout
if ErrorLevel
{
return
}
else
{
sendinput, ^v{enter}
return
}
clipboard := oldclipboard ; Restore old (real) clipboard
return
_______________
The file will open from "run" without admin privileges.
Re: Run program without admin privilege in admin mode Everything
To customize how Everything executes an item:
- In Everything, from the Tools menu, click Options.
- Click the Context menu tab on the left.
- Select Open (Files)
- Change command from:
$exec("%1") - to:
$exec("myprogram.exe" "%1")
Re: Run program without admin privilege in admin mode Everything
No, this is not working. I have problems to open it form another AutoHotkey script. You need to do it with the "run" (Win+R)
But i have added a additional script to open it with doublclick instead of F7 as in the first script (i use both)
In the settings you wrote change:
In Everything, from the Tools menu, click Options.
Click the Context menu tab on the left.
Select Open (Files)
from:
$exec("%1")
to:
$exec(C:\Users\username\documents\everything_helper.ahk) ; insert your path of script
This is the code of everything_helper.ahk:
oldclipboard := ClipboardAll ; Save the (real) clipboard
sleep, 100
sendinput, ^+c
ClipWait, 1
sendinput, #r ;run file
WinWaitActive, ahk_class #32770, , 1 ; 1 second timeout
if ErrorLevel
{
msgbox, problem with everything_helper
return
}
else
{
sendinput, ^v{enter}
return
}
clipboard := oldclipboard ; Restore old (real) clipboard
ExitApp
But i have added a additional script to open it with doublclick instead of F7 as in the first script (i use both)
In the settings you wrote change:
In Everything, from the Tools menu, click Options.
Click the Context menu tab on the left.
Select Open (Files)
from:
$exec("%1")
to:
$exec(C:\Users\username\documents\everything_helper.ahk) ; insert your path of script
This is the code of everything_helper.ahk:
oldclipboard := ClipboardAll ; Save the (real) clipboard
sleep, 100
sendinput, ^+c
ClipWait, 1
sendinput, #r ;run file
WinWaitActive, ahk_class #32770, , 1 ; 1 second timeout
if ErrorLevel
{
msgbox, problem with everything_helper
return
}
else
{
sendinput, ^v{enter}
return
}
clipboard := oldclipboard ; Restore old (real) clipboard
ExitApp
Re: Run program without admin privilege in admin mode Everything
Another approach:
Bonus:
BUT ...
I would advice you to NOT run Everything as administrator, bu as a regular user:
- Enable Everything Service
- Disable Run as administrator
Both settings can be found under Menu:Tools > Options > General
- Download ADD_Unelevate.reg from this thread
- Search for ADD_Unelevate.reg in your elevated (running as administrator) Everything
- Double-click the reg-file and accept the dialogs
Bonus:
- Completely exit Everything: right-click the Everything icon in the system tray and choose Exit
- Open your Everything.ini
- Search for the line with "custom_verb01=" and change it to custom_verb01=UnElevate
- Save Everything.ini
- Satrt Everything again
- Go to Menu:Tools > Options > General > Keyboard
- In the Show commands containing box, enter verb
- Change the keyboard shortcut of File | Custom verb 1 to F7 (global)
- Press OK button
BUT ...
I would advice you to NOT run Everything as administrator, bu as a regular user:
- Enable Everything Service
- Disable Run as administrator
Both settings can be found under Menu:Tools > Options > General
Re: Run program without admin privilege in admin mode Everything
The solution with AutoHotkey works, but it costs some extra seconds. And it is annoying to see the run dialog popping up at this method.
Because no of all these solutions are satifying, i switched to use everything without administration mode.
I hope that there in the future will be a option (checkbox) within everything to "run files without admin mode".
My main problem with running files in admin mode is that my AutoHotkey hotkeys are not working, because i run AutoHotkey not in admin mode.
Because no of all these solutions are satifying, i switched to use everything without administration mode.
I hope that there in the future will be a option (checkbox) within everything to "run files without admin mode".
My main problem with running files in admin mode is that my AutoHotkey hotkeys are not working, because i run AutoHotkey not in admin mode.
Re: Run program without admin privilege in admin mode Everything
Good! That is the recommended way to run Everything.
What was wrong with them?
That is a Windows limitation.
Re: Run program without admin privilege in admin mode Everything
Let me toss in that I tend to agree with OP. His particular situations aside, it would be proper for Everything running As Admin to execute files As Not Admin as the default behavior, and offer up a checkbox Execute Files As Admin for both Everything As Admin, and Everything As Service users.
The behavior of how files are executed, elevated or not, should be agnostic to whether Everything is running as admin or as a service. To keep everyone safe. This should not at all be a tricky thing to code.
As a tech who uses Everything on a USB key, I do use Everything as Admin, but don't want to launch things with Admin privs.
The behavior of how files are executed, elevated or not, should be agnostic to whether Everything is running as admin or as a service. To keep everyone safe. This should not at all be a tricky thing to code.
As a tech who uses Everything on a USB key, I do use Everything as Admin, but don't want to launch things with Admin privs.
Re: Run program without admin privilege in admin mode Everything
On an aside, addendum, I still feel that Everything is doing something wrong when it comes to executing / spawning child processes. They should not be inheriting the Everything process and process priority as they presently do. Other software I use that execute / spawn child processes are capable of launching them externally and not paternally.
Re: Run program without admin privilege in admin mode Everything
I don't agree with this (at all!)raccoon wrote: ↑Tue Nov 10, 2020 7:24 pm Let me toss in that I tend to agree with OP. His particular situations aside, it would be proper for Everything running As Admin to execute files As Not Admin as the default behavior, and offer up a checkbox Execute Files As Admin for both Everything As Admin, and Everything As Service users.
The behavior of how files are executed, elevated or not, should be agnostic to whether Everything is running as admin or as a service. To keep everyone safe.
If you decide to run Everything elevated, programs started from Everything should be run elevated too. In that case I do not want UAC prompts for firewall.cpl and all .msc files (to name an example).
But I would not run Everything elevated, not even from a USB stick. Just like I would not run any file manager elevated (unless for a very specific reason). There are just too many risks ...
Simply write a wrapper script that installs the service, runs Everything (unelevated!) and removes the service when Everything is no longer running. A couple of lines of code should suffice for that.This should not at all be a tricky thing to code.As a tech who uses Everything on a USB key, I do use Everything as Admin, but don't want to launch things with Admin privs.
No need to code this into Everything (IMO). If you want all your programs to be started unelevated:
- Go to Menu:Tools > Options > General > Context Menu
- Select Open (Files)
- Replace $exec("%1") with $exec(explorer.exe "%1")
- Click the OK button
- Done
(That is how the reg-file works that I posted earlier in this thread)
Re: Run program without admin privilege in admin mode Everything
What if you launch a different program from the file's right-click context menu? Is that also influenced by this? Such as `Edit with Notepad++`
Re: Run program without admin privilege in admin mode Everything
No, that will run elevated (not tested though).
That is another reason to run as 'normal' restricted user: the context-menu might differ between accounts.
Re: Run program without admin privilege in admin mode Everything
Again. The fact that Everything is restricted to running external programs with the same elevation as itself, is a bug, not a feature.
There are multiple Windows API for executing external processes that should all be explored. IE, various ShellExecute() and ShellExecuteEx() flags, besides other functions available.
Insisting that the user not run Everything as Admin is arbitrary and incoherent, because of this bug.
There are multiple Windows API for executing external processes that should all be explored. IE, various ShellExecute() and ShellExecuteEx() flags, besides other functions available.
Insisting that the user not run Everything as Admin is arbitrary and incoherent, because of this bug.
Re: Run program without admin privilege in admin mode Everything
How is that a bug?
If you spawn create a child process, that process will run under the same credentials as the parent process. That is Windows design.
It might be inconvenient for your use case, but I can't see a bug here.
If you spawn create a child process, that process will run under the same credentials as the parent process. That is Windows design.
It might be inconvenient for your use case, but I can't see a bug here.
Re: Run program without admin privilege in admin mode Everything
Incorrect. Invalid. You wrote: "If you spawn create a child process, that process will run under the same credentials as the parent process. That is Windows design." That is not true. It's only true if you prefer to do it this way. Stop preferring to do it this way and it won't be done this way.
Re: Run program without admin privilege in admin mode Everything
And therefor: Not a bug.
But that is all I have to say about the subject - at least in this thread - as all this turns out to be a waste of my valuable time.
I thought that you would understand that it is the Windows design DEFAULT. Of course you can start a child process using different credentials (as I even showed earlier in this thread).
But that is all I have to say about the subject - at least in this thread - as all this turns out to be a waste of my valuable time.
Re: Run program without admin privilege in admin mode Everything
I agree fully with NotNull
Its not a bug and further discussions are useless.
Its not a bug and further discussions are useless.