In order to add a specific Egnyte folder as a mapped drive, a command needs to be run from the Command Prompt as an Administrator. This guide will walk you through opening the Command Prompt as an administrator and creating a command that will add a folder as a mapped drive in File Explorer.
1) Open Command Prompt as Administrator:
-Click Start, type Command Prompt and Run as Administrator
2) Elevate permissions to run the Command Prompt as Administrator:
-You will receive a Beyond Trust Privilege Management prompt. Select Accenture Business from the dropdown and select Yes:
3) Create the Egnyte Mapped Drive command.
-You will need to tailor the following command to contain the appropriate Drive Name, Drive Letter and File Path:
"%ProgramFiles(x86)%\Egnyte Connect\EgnyteClient.exe" -command add -l "DriveName" -d "anseradvisory" -t DriveLetter -m "/shared/FilePath/" -c connect_immediately
DriveName: this is how the drive will appear within File Explorer; in this example, we will map a folder named Projects
DriveLetter: this is the letter used for the drive; for example, replace DriveLetter with P
FilePath: this is the file path for the mapped folder within Egnyte; if we were to map T:\Shared\New Jersey\Projects, replace FilePath with New Jersey/Projects
We now have a command to Copy & Paste into the Command Prompt:
"%ProgramFiles(x86)%\Egnyte Connect\EgnyteClient.exe" -command add -l "Projects" -d "anseradvisory" -t P -m "/shared/New Jersey/Projects/" -c connect_immediately
4) Copy/Paste into Command Prompt and press Enter.
To remove a mapped drive, repeat the same prompts to elevate permissions and use the following command:
"%ProgramFiles(x86)%\Egnyte Connect\EgnyteClient.exe" -command remove -l "DriveName"
If we remove the drive from the previous example, we would use the following command:
"%ProgramFiles(x86)%\Egnyte Connect\EgnyteClient.exe" -command remove -l "Projects"