All mapped network drives in Windows are connected only for the current user's session. By default, Resilio Connect Agent runs as either a Local System or Local Service user. As a result, Agent is unable to see any network drives that are normally seen by your user. This is Windows OS limitation which can be workarounded by explicit mapping of a drive for a Local System user.
Please follow the instruction below to make your network drive available for Resilio Agent:
- Ensure that the agent runs as a Local System account
- open Services, find "Resilio Connect Agent Service"
- right-click and pick "Properties", "Log on"
- check that either "Local System account" radio button is chosen or "This account" contains "NT AUTHORITY\System" or "Local System" or any other localized username that indicates that the user name is Local System. Note that the Local System account always has an empty password.
- Open command line with elevated privileges (Run as Administrator)
- Download Sysinternals set of tools and unpack to some directory, navigate your Admin command line to the same directory
- In Admin command line, run command
psexec -i -s cmd.exe. This will open a new command prompt, running from the System account name. Verify that by running the
whoamicommand. The output should be
- Run command
net use <drive_letter>: \\<yourservername>\<foldername> <password> /user:<username> /persistent:yescommand for each drive you need to get mapped, replacing drive letter, network path, username and path accordingly
- The mapped drive is going to be visible to all users in your system, though will always show up as "Disconnected" in Explorer.
To disconnect network drive, you'll need to repeat #2..4 and run the following command in System user command prompt:
net use <drive_letter>: /delete