How to mount a WebDAV drive in Windows Server

WebDAV (Web Distributed Authoring and Versioning) is a protocol that allows you to access and manage files stored on a remote server over HTTP or HTTPS. In Windows, mapping a network drive to a WebDAV server can simplify file access, making remote resources appear as a local drive. However, if you’re using Windows Server and encounter issues such as System error 67 has occurred, you may need to configure the WebDAV Redirector. This post will guide you through the steps to enable and configure WebDAV Redirector on a Windows Server.

Outside the box, when attempting to map a WebDAV drive using the net use command:

PS C:\Users\Administrator> net use Z: http://yourserver.com /user:yourusername yourpassword
System error 67 has occurred.

The network name cannot be found.

PS C:\Users\Administrator>

This issue usually occurs because the WebDAV Redirector is not properly installed or configured on your Windows Server.

Prerequisites

Before we begin, ensure:

  1. Your WebDAV server is accessible via a browser or a tool like curl.
  2. You have administrative access to the Windows Server.

Enable WebDAV Redirector

The WebDAV Redirector is a Windows feature specifically designed to handle WebDAV mappings.

  1. Open Server Manager: Press Win + R, type ServerManager, and hit Enter.
  2. Add Roles and Features: In Server Manager, click on “Add Roles and Features”.
  3. Navigate to Features: Follow the wizard steps:
    • Installation Type: Select Role-based or feature-based installation.
    • Server Selection: Choose your local server.
    • Server Roles: Skip this step and proceed to the Features page.
  4. Enable WebDAV Redirector: On the Features page, locate WebDAV Redirector and check the box
  5. Complete Installation by toggling the “Restart the destination server automatically if required” button and clicking the install button