Run as admin issue + path does not exist
Run as admin issue + path does not exist
Hi all,
I have Everything installed on a laptop and it runs great . . . I love it! However, I have two problems when running it on a desktop on the same network.
Both machines are almost identical setup:
Windows 10 update 1607.
1 x admin user, 1 x standard user
Both access data on a NAS via a mapped network drive.
Issue #1: Can't run Everything as a standard user (when logged in as such):
Tools > Options > General > 'run as administrator' is unchecked
I've also checked the setting in %APPDATA%\Everything\Everything.ini
run_as_admin=0
[EDIT] I have Everything Service checked in Options > General
I have tried the following Windows properties setting both checked and unchecked:
Properties > Compatibility > run this program as an administrator
Issue #2: Specified path does not exist
I'm getting the path does not exist error discussed at http://www.voidtools.com/forum/viewtopi ... 84&p=12098 when trying to access folders and files on the mapped network. (Again, this works fine on the laptop I have mapped to the NAS in the same way).
I reinstalled Everything and as described by the poster in that thread, everything was initially ok. However, every time I reboot the machine, this error reappears.
Thanks in anticipation for any help you can offer.
Gary
I have Everything installed on a laptop and it runs great . . . I love it! However, I have two problems when running it on a desktop on the same network.
Both machines are almost identical setup:
Windows 10 update 1607.
1 x admin user, 1 x standard user
Both access data on a NAS via a mapped network drive.
Issue #1: Can't run Everything as a standard user (when logged in as such):
Tools > Options > General > 'run as administrator' is unchecked
I've also checked the setting in %APPDATA%\Everything\Everything.ini
run_as_admin=0
[EDIT] I have Everything Service checked in Options > General
I have tried the following Windows properties setting both checked and unchecked:
Properties > Compatibility > run this program as an administrator
Issue #2: Specified path does not exist
I'm getting the path does not exist error discussed at http://www.voidtools.com/forum/viewtopi ... 84&p=12098 when trying to access folders and files on the mapped network. (Again, this works fine on the laptop I have mapped to the NAS in the same way).
I reinstalled Everything and as described by the poster in that thread, everything was initially ok. However, every time I reboot the machine, this error reappears.
Thanks in anticipation for any help you can offer.
Gary
Last edited by ztalk112 on Thu Nov 03, 2016 10:46 pm, edited 1 time in total.
-
- Posts: 24
- Joined: Thu Mar 26, 2009 3:55 pm
Re: Run as admin issue + path does not exist
I was confused about this for a while, and I believe that if you run the everything service, there is no need to run the app as admin
Re: Run as admin issue + path does not exist
Sorry,
I forgot to mention that I have Everything Service checked in Options > General.
I forgot to mention that I have Everything Service checked in Options > General.
Re: Run as admin issue + path does not exist
Are you using the Everything Service?Issue #1: Can't run Everything as a standard user
If not, you would have to "Run As Administrator".
(Better, IMO, to use the Service.)
Is it a UNC path?Issue #2: Specified path does not exist
If you're (you as in your User level) running as Administrator, you won't be able to see UNC shares (or something along those lines).
Try mapping the share to a drive letter.
Re: Run as admin issue + path does not exist
Thx for your reply.
Issue#1: I am using the Everything Service
Issue#2: The path is a mapped drive, not a UNC path.
It's the same mapped drive that works for me on my laptop running Everything.
Issue#1: I am using the Everything Service
Issue#2: The path is a mapped drive, not a UNC path.
It's the same mapped drive that works for me on my laptop running Everything.
Re: Run as admin issue + path does not exist
do you perhaps map your shares with a batch file like when windows starts ?ztalk112 wrote:Thx for your reply.
Issue#1: I am using the Everything Service
Issue#2: The path is a mapped drive, not a UNC path.
It's the same mapped drive that works for me on my laptop running Everything.
if the batch file is not started as admin, the shares won't be present for admin started programs.
so i suggest either mapping them with an admin shortcut or starting Everything as normal way instead of as admin.
i've had this problem with other apps that i start as admin, they don't see my mapped drives (non admin shortcut), i assure you it's a windows "feature".
Re: Run as admin issue + path does not exist
Please check your Everything.ini in the same location as your Everything.exe, please make sure:Issue #1: Can't run Everything as a standard user (when logged in as such):
run_as_admin=0
This is caused by issue #1. Programs run as admin will not see mapped network drives created by a standard user.I'm getting the path does not exist error discussed at viewtopic.php?f=5&t=4784&p=12098 when trying to access folders and files on the mapped network. (Again, this works fine on the laptop I have mapped to the NAS in the same way).
Re: Run as admin issue + path does not exist
Thx Rene, but no. It is mapped via Windows regular mapping feature using a UNC address and set to reconnect at logon.Rene wrote:do you perhaps map your shares with a batch file like when windows starts ?
The mapped address is the same on both my machines. As described in my original post, one works with Everything flawlessly but the 2nd one doesn't.
Re: Run as admin issue + path does not exist
As described in my original post above, run_as_admin=0 in the .ini file.void wrote:Please check your Everything.ini in the same location as your Everything.exe, please make sure:
run_as_admin=0
(I even tried using the .ini file from the laptop where Everything works well, but no good).
I'm not sure I follow. As described above, I have 2 users, 1 x admin and 1 x standard user.void wrote:Programs run as admin will not see mapped network drives created by a standard user.
The network share was set up when logged in as the admin user, but works as intended for every other app when logged in as the standard user.
When logged in as the admin user, neither of the two issues being discussed occur . . . only when logged in as the standard user.
And again, I have exactly the same setup on another machine and it works fine in that instance.
Re: Run as admin issue + path does not exist
There's two Everything.ini files, one in the same location as your Everything.exe and another in %APPDATA%\Everything.As described in my original post above, run_as_admin=0 in the .ini file.
(I even tried using the .ini file from the laptop where Everything works well, but no good).
Could you please send some debug output about your Everything setup:
- In Everything, press Ctrl + `
- What is displayed at the top of the debug console?
Code: Select all
Everything
Version 1.4.1.794b (x86) DEBUG
Windows NT 6.1
Processors 8
IsAdmin 1
AppData 0
Service 2
cmdline "c:\dev\everything\debug\Everything.exe"
From a standard user command prompt, is the mapped network drive accessible?When logged in as the admin user, neither of the two issues being discussed occur . . . only when logged in as the standard user.
From a admin command prompt, is the mapped network drive accessible?
Re: Run as admin issue + path does not exist
Ok, so I uninstalled the app (for the 3rd or 4th time), reinstalled and for some reason it now allows me to access the mapped drive when logged in either as a standard or admin user (ie issue #2 above is evidently resolved).
However, issue #1 remains - I still get a UAC prompt when logged in as a standard user, even though I am running the Everything Service and Run as Admin is unchecked in Options.
run_as_admin=0
in both .ini files (install directory and %APPDATA%\Everything)
Here's the first few lines of the debug console
I note that Everything is installed at C:\Program Files\Everything, even though I'm running 64 bit version of Win 10. Is that correct?
However, issue #1 remains - I still get a UAC prompt when logged in as a standard user, even though I am running the Everything Service and Run as Admin is unchecked in Options.
run_as_admin=0
in both .ini files (install directory and %APPDATA%\Everything)
Here's the first few lines of the debug console
Code: Select all
Everything
Version 1.3.4.686 (x64)
Windows NT 6.2
Processors 4
IsAdmin 0
AppData 1
Service 1
Re: Run as admin issue + path does not exist
Thanks for the debug output.
Was there a cmdline line in the debug console after Service 1 part?
The x86 version will install to C:\Program Files (x86)\Everything
Was there a cmdline line in the debug console after Service 1 part?
The x64 version of Everything will install to C:\Program Files\Everything by default.I note that Everything is installed at C:\Program Files\Everything, even though I'm running 64 bit version of Win 10. Is that correct?
The x86 version will install to C:\Program Files (x86)\Everything
Re: Run as admin issue + path does not exist
See screenshot attached.Was there a cmdline line in the debug console after Service 1 part?
I see that (unlike my previous post), IsAdmin is now equal to 1 in the debug console.
Cheers.
- Attachments
-
- screenshot 1.png (33.64 KiB) Viewed 15211 times
Re: Run as admin issue + path does not exist
And here's the rest of interest . . .
- Attachments
-
- screenshot 2.png (29.92 KiB) Viewed 15211 times
-
- screenshot 3.png (45.44 KiB) Viewed 15211 times
-
- screenshot 4.png (44.48 KiB) Viewed 15211 times
Re: Run as admin issue + path does not exist
Thanks for the screenshots, ah Everything 1.3.4 doesn't have the cmdline in the debug output.
Could you please run task manager to find the command line:
If not, Windows is launching Everything as admin, you'll have to double check your shortcuts and the Everything.exe are not set to run as Administrator.
Are you using a scheduled task to run Everything on startup?
Could you please run task manager to find the command line:
- Press Ctrl + Shift + ESC to launch the Task manager.
- Select the Processes tab (Details on Windows 10)
- From the View menu, click Select Columns.
- Check Command line and click OK.
- What is the full command line for the two Everything.exe processes?
If not, Windows is launching Everything as admin, you'll have to double check your shortcuts and the Everything.exe are not set to run as Administrator.
Are you using a scheduled task to run Everything on startup?
Re: Run as admin issue + path does not exist
Thanks for your help.
I'm only running Everything from a desktop shorcut (screenshots below), it's not set to run at startup.
No command lines in the task manager screenshot.
I'm only running Everything from a desktop shorcut (screenshots below), it's not set to run at startup.
No command lines in the task manager screenshot.
- Attachments
-
- task manager.png (226.19 KiB) Viewed 15209 times
-
- shortcut.png (22.08 KiB) Viewed 15209 times
-
- compatibility.png (26.32 KiB) Viewed 15209 times
Re: Run as admin issue + path does not exist
Thanks for the screenshots.
- On Windows 10, in the Task Manager, Click the Details tab.
- Right click the Column header and click Select Columns.
- Check Command line and click OK.
- What is displayed for the command line for the Everything.exe processes?
Re: Run as admin issue + path does not exist
Running as admin, but no command line.
- Attachments
-
- task manager 2.png (28.83 KiB) Viewed 15208 times
Re: Run as admin issue + path does not exist
Please try replacing your Everything.exe with the latest 1.4.1 beta.
What is displayed in the debug console for Everything 1.4.1?
What is displayed in the debug console for Everything 1.4.1?
Re: Run as admin issue + path does not exist
1.4.1 runs with same behaviour as 1.3.4.
Allows access to NAS via mapped drive, but still prompts for UAC password at start up.
Allows access to NAS via mapped drive, but still prompts for UAC password at start up.
- Attachments
-
- debug 1.png (30.67 KiB) Viewed 15202 times
-
- task man 1.png (35.12 KiB) Viewed 15202 times
-
- options 1.png (27.65 KiB) Viewed 15202 times
Re: Run as admin issue + path does not exist
Thanks for the screenshots.cmdline "C:\Program Files\Everything\Everything.exe"
It looks like Everything is not relaunching itself as admin from the command line.
It must be the system running Everything as admin, please try removing any compatibility mode settings for Everything from the registry:
- From the Start menu, click Run.
- Type in regedit and click OK.
- 1). Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers - Delete any entries with the name: C:\Program Files\Everything\Everything.exe
- 2). Navigate to:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers - Delete any entries with the name: C:\Program Files\Everything\Everything.exe
- 3). Navigate to:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers - Delete any entries with the name: C:\Program Files\Everything\Everything.exe
- Close the registry editor.
Re: Run as admin issue + path does not exist
Ok, first I uninstalled the beta version because it wouldn't retain settings for Indexes > Folders and Indexes > Exclude after a reboot.
I reinstalled 1.3.4 and looked at the registry per your instructions (thank you) and here's what I found:
I reinstalled 1.3.4 and looked at the registry per your instructions (thank you) and here's what I found:
Beyond that, I now find that version 1.3.4 is also not retaining settings for mapped folders and exclusions (c: drive).void wrote: [*]1). Navigate to:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
[*]Delete any entries with the name: C:\Program Files\Everything\Everything.exe
There were no entries (just a default with no value set)
[*]2). Navigate to:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
[*]Delete any entries with the name: C:\Program Files\Everything\Everything.exe
The layers folder was not present
[*]3). Navigate to:
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers
[*]Delete any entries with the name: C:\Program Files\Everything\Everything.exe
[*]Close the registry editor.[/list]
The layers folder was not present
Re: Run as admin issue + path does not exist
Thanks for the registry info.
Is Tools -> Options -> General -> Store settings and data in %APPDATA%\Everything enabled?
Please try changing the compatibility mode to Windows 7 for Everything:
Is Tools -> Options -> General -> Store settings and data in %APPDATA%\Everything enabled?
Please try changing the compatibility mode to Windows 7 for Everything:
- Right click your Everything.exe and click Properties.
- Select the Compatibility tab.
- Check Run this program in compatibility mode for:
- Select Windows 7.
- Click OK.