How Do I Map a (SMB) Network Share On Windows (on the Confluence server)

Given an SMB file share available on your network as \\sharename\shared\ that you wish to have mapped to the Confluence server as X:\, perform the following steps:

  1. Download the Microsoft SysInternalsSuite and unzip it

  2. Open a Command Prompt with escalated administrative permissions

    1. Press the Windows Key on the keyboard (or click the Windows Start icon)
    2. Type cmd
    3. Right click cmd.exe (to open the Command Prompt)
    4. Click Run as administrator.
  3. Navigate to the folder unzipped in step 1.

  4. Type in psexec -i -s cmd.exe and press Enter. A new console window opens up.

  5. Type in net use x: \\sharename\sharedfolder /persistent:yes and press Enter. The drive will show up as disconnected, but it will still work if you navigate to it. And most importantly: the drive is available to Confluence.

Note: If you need to delete the mapping later, then you have to repeat the steps up to 4, and then execute the command net use X: /delete.