Guides · Pier

How to mount Nextcloud as a drive letter in Windows

The Nextcloud desktop client synchronises files to your disk. Sometimes you want the opposite: the whole server visible as a drive, with nothing copied until you open it. Nextcloud speaks WebDAV, so Windows can map it — with caveats. Here are both ways to do it.

Updated

First: your WebDAV address and an app password

Every Nextcloud account has a WebDAV address of this form:

https://cloud.example.com/remote.php/dav/files/USERNAME

You can copy it from the Files app: Files settings in the bottom-left corner shows the WebDAV URL. If two-factor authentication is on for your account, the normal password will not work for WebDAV. Create an app password in Settings → Security → Devices & sessions and use it instead.

Option 1. The WebDAV client built into Windows

In Explorer choose This PC → Map network drive, pick a letter and paste the WebDAV address, or use the command line:

net use N: https://cloud.example.com/remote.php/dav/files/USERNAME /user:USERNAME

This works for small documents. Before relying on it, know its limits:

Option 2. Pier

Pier is a Windows service that mounts WebDAV storage as a real drive letter and is written with Nextcloud in mind: it uses Nextcloud's chunked-upload protocol for large files, keeps a block cache on your disk and resumes an interrupted transfer from the last completed block.

  1. Download and run the Pier installer. It installs the open-source Dokany file-system driver if it is missing; no reboot is needed.
  2. Open Pier from the tray icon and press Add.
  3. Paste the WebDAV address into Address. Pier takes the protocol, port, path and login from the link; type the password or app password.
  4. Press Check. Pier connects, tests writing and renaming and reports what the server supports.
  5. Choose a drive letter and press OK. The drive appears in This PC and comes back after every reboot.

Which one to use

Windows WebDAV clientPier
File sizeAbout 47 MB by default, 4 GB at mostNo client-side limit
Large uploadsOne request, restart on failureNextcloud chunked upload, resumes
Local cacheMinimalBlock cache, size set by you
Offline workNoOffline mode with queued changes
After a network dropDrive may need remappingReconnects by itself
CostIncluded in WindowsFree up to 5 drives; Pro $19 a year

Tips for a smooth drive

Pier

Pier mounts WebDAV (Nextcloud, ownCloud), SFTP and NFSv3 storage as a real Windows drive letter with a local block cache, resumable transfers and an offline mode. Free for up to 5 drives.

Frequently asked questions

Does mounting replace the Nextcloud sync client?

It is a different tool. The sync client keeps chosen folders on your disk. A mounted drive shows everything on the server and downloads only what you open. Many people use both.

Does it work with ownCloud and other WebDAV servers?

Yes. Pier works with any WebDAV server — ownCloud, Synology and QNAP NAS, Apache mod_dav, IIS. For ownCloud the address is the same remote.php/dav/files/USERNAME form.

Where is my password stored?

In Pier's configuration on the machine, encrypted with Windows DPAPI. Pier talks only to the servers you configure.

Why does Windows say the network name cannot be found?

With the built-in client this usually means the WebClient service is not running, the address is wrong, or the server uses HTTP without TLS, which Windows refuses for basic authentication by default.

Related guides