WebDAV Drive App Deployment via Intune

The functionality described in this article is supported in WebDAV Drive App v9.4 (WebDAV Ajax Library v6.2) and later versions.

Overview

WebDAV Drive App can be deployed to managed devices with Microsoft Intune using two installation methods: via Microsoft Store or via a direct MSIX package.

Regardless of the installation method, the initial configuration logic is the same: it is not technically possible to pass custom parameters directly into the packaged app during deployment. Instead, the application reads its settings from an external configuration file created by a PowerShell script.

Deployment consists of two main steps:

  1. Create the configuration file on the device.
  2. Install WebDAV Drive App.

It is recommended to create the configuration file first and install the application afterward. This allows WebDAV Drive App to apply the configuration automatically on first launch.

Before You Begin

Configuration File Location

The configuration file path is generated dynamically based on the AppID value:

C:\ProgramData\<AppID>\webdavdrive-config.json

In the script, the path is built as follows:

$ConfigFile = "$env:ProgramData\$AppID\webdavdrive-config.json"

For example, if AppID = 'WebDAVDrive', the resulting path is:

C:\ProgramData\WebDAVDrive\webdavdrive-config.json

Configuration Parameters

The configuration file can contain the following parameters:

  • WebDAVServerURLs — the WebDAV server URL.
  • UserFileSystemRootPath — the local mount folder.
  • WebDAVClientLicense — the license key.
  • DriveVisible — whether the drive should be visible in the system.

Step 1. Create the Configuration File with PowerShell

A PowerShell script is used to create the configuration file on managed devices.

Example Script

$WebDAVServerURLs = 'https://www.webdavsystem.com/'
$UserFileSystemRootPath = '%USERPROFILE%\WebDAVDrive'
$WebDAVClientLicense = '... LICENSE HERE ...'
$DriveVisible = $true
$AppID = 'WebDAVDrive'

$ConfigFile = "$env:ProgramData\$AppID\webdavdrive-config.json"

New-Item -ItemType Directory -Path (Split-Path $ConfigFile) -Force | Out-Null

$config = @{
    WebDAVServerURLs      = $WebDAVServerURLs
    UserFileSystemRootPath = $UserFileSystemRootPath
    WebDAVClientLicense   = $WebDAVClientLicense
    DriveVisible          = $DriveVisible
}

$json = $config | ConvertTo-Json -Depth 10

$json = $json `
    -replace '\\u003c', '<' `
    -replace '\\u003e', '>' `
    -replace '\\u0026', '&' `
    -replace '\\u0027', "'"

$json | Set-Content -Path $ConfigFile -Encoding UTF8
Write-Host "Config saved to: $ConfigFile"

Values to Update Before Deployment

Before deploying the script, replace the following values with your own:

  • $WebDAVServerURLs — your WebDAV server URL.
  • $UserFileSystemRootPath — the local folder where WebDAV content will be mounted.
  • $WebDAVClientLicense — your license key.
  • $DriveVisible — set to $true or $false.
  • $AppID — the application identifier.

Important: AppID must match the application ID expected by the app.

Deploy the Script in Intune

Go to Devices > Scripts and remediations > Platform scripts.

WebDAV Drive Intune deployment - Scripts and remediations Platform scripts page

Create a new PowerShell script. In the Basics step, enter the script name and optional description.

WebDAV Drive Intune deployment - adding new PowerShell configuration script

In the Script settings step, upload the script file and configure the execution options:

  • Run this script using the logged on credentials: No
  • Enforce script signature check: No
  • Run script in 64 bit PowerShell Host: Yes

WebDAV Drive Intune deployment - PowerShell script execution settings

Assign the script to the required devices or groups.

WebDAV Drive Intune deployment - script device group assignment

After the script is deployed, verify in Device status that the deployment completed successfully.

WebDAV Drive Intune deployment - script device installation status

Step 2. Install WebDAV Drive App

After the configuration file has been deployed, install the application using one of the following methods.

Option A. Install via MSIX Package

Use this option when WebDAV Drive App is distributed as an .msix package.

Important: If the MSIX package is signed with a self-signed certificate, that certificate must be deployed to the target devices as a trusted certificate before the application is installed. Otherwise, Windows will block the installation.

To deploy the certificate, go to Devices > Windows > Configuration in Intune, create a new profile, select Windows 10 and later, choose Templates, and then select Trusted certificate. Upload the certificate file, assign the profile to the required device or user groups, and complete the profile creation.

Warning: Deploy a trusted certificate only if you fully trust its source and scope. Installing an incorrect or overly broad certificate may introduce security risks on managed devices. Always assign the certificate only to the devices or users that require it.

  1. Select Line-of-business app. In Apps > Windows > Windows apps, click Create and select Line-of-business app as the app type.

    WebDAV Drive Intune MSIX deployment - selecting Line-of-business app type

  2. Upload the MSIX package. In the App package file section, select the WebDAV Drive App .msix file.

    WebDAV Drive Intune MSIX deployment - uploading app package file

  3. Enter the app information. Review or update the application details such as Name, Description, Publisher, and Category.

    WebDAV Drive Intune MSIX deployment - app information and metadata

  4. Configure assignments. Select the users, devices, or groups that should receive the application.

    WebDAV Drive Intune MSIX deployment - app group assignment

  5. Review and create. Review the configuration and create the deployment.

    WebDAV Drive Intune MSIX deployment - review and create summary

  6. Verify creation. Open the app overview page in Intune and confirm the package was uploaded successfully.

    WebDAV Drive Intune MSIX deployment - app overview confirmation

  7. Verify installation. In Device install status, confirm that WebDAV Drive App shows as Installed on the expected devices.

    WebDAV Drive Intune MSIX deployment - device installation status verification

Option B. Install via Microsoft Store

Use this option when WebDAV Drive App is available in Microsoft Store.

  1. Select the app type. In Apps > Windows > Windows apps, click Create and select Microsoft Store app (new).

    WebDAV Drive Intune Store deployment - selecting Microsoft Store app type

  2. Open the search. In the App information step, click Search the Microsoft Store app (new).

    WebDAV Drive Intune Store deployment - searching Microsoft Store

  3. Select WebDAV Drive App. Search for WebDAV Drive, select the correct application from the results, and confirm.

    WebDAV Drive Intune Store deployment - selecting WebDAV Drive from search results

  4. Review the app information. Verify the populated fields such as Name, Description, Publisher, and Installer Type.

    WebDAV Drive Intune Store deployment - app information and metadata

  5. Configure assignments. Specify which users, devices, or groups should receive the application.

    WebDAV Drive Intune Store deployment - app group assignment

  6. Complete and verify. Finish the deployment and verify in Intune that the application was installed on the expected devices.

    WebDAV Drive Intune Store deployment - device installation status verification

Verify the Deployment

  1. Confirm that the configuration file exists at C:\ProgramData\<AppID>\webdavdrive-config.json.
  2. Confirm that WebDAV Drive App is installed on the expected devices.
  3. Launch the app and verify that the configuration was applied automatically.

How It Works After Deployment

When WebDAV Drive App starts, it checks whether the configuration file exists at C:\ProgramData\<AppID>\webdavdrive-config.json. If the file is found, the application reads the parameters and verifies whether they have already been applied. If the configuration is new or has changed, the application updates its settings accordingly.

This makes it possible to centrally manage the application configuration through Intune without requiring users to configure anything manually.