windows server 2016

Installing WebDAV client on Windows Server 2016


WebDAV (Web Distributed Authoring and Versioning) is an extension of the HTTP/1.1 protocol. The WebDAV protocol allows to access files on the remote server and perform common actions: reading, writing, deleting files. Typically, this protocol is used by users to work together with remote files. Simply put, WebDAV is essentially a web-based shared folder. To access the WebDAV shares, WebDAV client must be installed on the client side.

In Microsoft server operating systems there is no WebDAV client by default. For example, in Windows Server 2008 R2,2012/2012 R2, the WebDAV client is included to the Desktop-Experience feature. Therefore, to access WebDAV resources from these OSs, you must install this feature.

Install-WindowsFeature Desktop-Experience

Tip. In Windows Server 2008 R2, the Install-WindowsFeature cmdlet is missing, instead you need to use the Add-WindowsFeature.

Windows Server 2016 has a separate WebDAV-Redirector component. To install it, run the following command (you will need to reboot the server):

Install-WindowsFeature WebDAV-Redirector –Restart

After the reboot, verify that you have the WebDAV-Redirector feature installed:

Get-WindowsFeature WebDAV-Redirector | Format-Table –Autosize

WebDAV redirector

Two 2 new services will appear in the system:

  • WebClient (get-service WebClient) — Enable Windows-based programs to create, access, and modify Internet-based files;
  • MRxDAV (get-service MRxDAV) — File system driver (WebDav Client Redirector Driver).
READ ALSO  Active Directory Database File Compaction and Defragmentation

MRxDAV

By default, the WebClient service and the MRxDAV driver are disabled and configured to run in Manual mode when a trigger event occurs. Apparently, according to the idea of the developers, the service should have been launched when it first accessed from the driver MRXDAV.SYS, but, alas, it does not work everywhere. Therefore, we will force Automatic option for the service.

Set-Service WebClient -StartupType Automatic
Set-Service MRxDAV -StartupType Automatic
Start the services by running the following commands:
Start-Service WebClient
Start-Service MRxDAV

start service MRxDAV

The WebClient service is configured through the registry. All available settings are located in the registry key HKLM\SYSTEM\CurrentControlSet\Services\WebClient\Parameters.

webclient parameters

From a practical point of view, the following parameters of the WebClient service may be of interest.

AcceptOfficeAndTahoeServers — Ability to connect to Web servers with SharePoint and Office Web Server (1 –by default);

BasicAuthLevel — The type of authentication used by the WebClient service. Available values:

  • 0 — Basic authentication disabled;
  • 1 — Basic authentication enabled for SSL shares only (default value on Windows Server 2016);
  • 2 or greater — Basic authentication enabled for SSL shares and for non-SSL shares (Not safe, because The username and password are sent in plain text);

FileSizeLimitInBytes — maximum size (bytes) for file transfers  (by default 50 MB).

To test the operation of WebDav Client, let’s use the webdav-enabled share on live.sysinternals.com. This web directory stores popular sysadmin’s utilities from Sysinternals.

READ ALSO  Fix Trust relationship failed issue without domain rejoining

You can mount WebDAV drive on Windows Server 2016 in the following ways:

  • Without SSL:
    net use * \\live.sysinternals.com\
  • With SSL:
    net use * \\live.sysinternals.com@ssl\
  • You can specify credentials to authenticate on a remote WebDav share:
    net use * \\live.sysinternals.com@ssl\ /user:itbros *
  • You can specify a specific TCP port:
    \\live.sysinternals.com@80\folder

    or

    \\live.sysinternals.com@ssl\share
  • To delete the connected WebDav drive, run the command:
    net use * /del /y

DAV root

In case you’ll face with System error 67 has occured. The network name cannot be found after mounting the Webdav drive via explorer or cmdfollow the steps below to fix it:

  1. Check if WebClient service is started;
  2. Change the value of the registry parameter BasicAuthLevel to 1;
  3. Restart the computer.

You may also like:

Deploy Windows 10 using MDT 2013 and WDS In this article we will show you how to install and configure WDS role, MDT 2013 and Windows ADK on Windows Server 2012 R2 and use it to network PXE (...
How to transfer FSMO Roles using PowerShell When you create a domain, all FSMO roles assigned to the first domain controller in the forest by default. You can transfer FSMO roles from one DC to ...
Accessing Hyper-V Virtual Machine Console Using RD... Remote Desktop Connection Manager (RDCMan) is an official utility from Microsoft to connect to servers via RDP (which replaced the Remote Desktops sna...
Move FSMO Roles and Upgrade Domain to Windows Serv... In this article we will show you how to promote a new domain controller with Windows Server 2016 in the Active Directory domain, move FSMO roles from ...
How to Add or Remove SMTP Alias to Exchange 2016 M... Sometimes you need to add another email address to the existing user. In Exchange, in addition to the primary address, each mailbox can be assigned to...