Intune - Zero Touch Installation of the Desktop App

How-to guide

How to configure Intune zero touch deployment of the desktop app with the Windows MSI

  • Last validated: Nov 20, 2026

Deploy the MSI, not the zero touch script. Starting in February 2027, new Windows releases are published as MSI only, and the Windows zero touch script can no longer install or upgrade to new versions. If you deploy the CSE app with the Intune zero touch script today, replace it with the MSI app in Step 2. From v4.8.0, the MSI installs over an existing EXE installation in place, so devices keep their registration. See Windows Desktop App Moving to MSI-Only Installation.

Overview

Microsoft Intune is used to administer corporate laptops, phones, tablets, and other devices in your enterprise. You can deploy the Cloud Secure Edge (CSE) desktop app to Windows devices through Intune in zero touch mode, with no interaction from end users. Zero touch mode does not require the end user to be an administrator on the device.

There are two ways to deploy the MSI through Intune:

Method How it works Use it when
Line-of-business app (recommended) Intune installs the MSI file that you upload, with the CSE properties as command-line arguments. You want Intune to manage the installation as an app.
Platform script Intune runs a PowerShell script that downloads and installs the latest MSI, as the zero touch script did. You want each device to download the newest version itself, without uploading each MSI to Intune.

For ARM Windows devices, deploy the ARM64 MSI so that the app runs natively. Use the x64 MSI on Intel and AMD devices. Both use the same properties.

Step 1: Get your deployment values

In the CSE Command Center, go to Settings > SonicWall CSE Client > the Deployment tab, and copy these values:

  • Invite Code
  • Deployment Key, under Zero-Touch Deployment Using a Device Manager. Generate one if your org does not have one yet.

For the other settings that you can pass, such as START_AT_BOOT and HIDE_ON_START, see Configuration Properties.

Step 2: Add the MSI as a line-of-business app

These steps follow Microsoft’s guide Add a Windows line-of-business app to Microsoft Intune.

2.1 Download the MSI from the CSE desktop app download page. To download the latest version directly, use https://www.banyanops.com/app/windows-msi/v4/latest for x64 or https://www.banyanops.com/app/windows-msi/v4/arm-latest for ARM64.

2.2 Sign in to the Microsoft Intune admin center, and go to Apps > All Apps > Create.

2.3 In Select app type, select the Windows platform, select Line-of-business app, and then choose Select.

2.4 Select Select app package file, and upload the MSI.

2.5 In App information, set these fields:

  • Command-line arguments: Enter the CSE properties. Do not include msiexec or /i, because Intune adds them:

    INVITE_CODE=<invite_code> DEPLOYMENT_KEY=<deployment_key> DEVICE_OWNERSHIP=C IS_MANAGED_DEVICE=true DEVICE_MANAGER_NAME=Intune MULTI_USER=false
    

    With MULTI_USER=false, the installer stages the device for the signed-in user, from the device’s Microsoft Entra ID join information. See Zero-Touch via Intune / Azure AD.

  • Ignore app version: Select Yes if you use App Auto Update. The app then updates itself, and Intune does not try to reinstall the version that you uploaded.

2.6 Assign the app as Required to your device groups, and then select Create.

The desktop app installs on the assigned devices and registers them with your CSE org. To confirm the configuration on a device, run:

Get-Content "C:\ProgramData\SonicWallCSE\mdm-config.json" | ConvertFrom-Json

For ARM devices, repeat these steps with the ARM64 MSI, and assign that app to a group of ARM devices.

Alternative: Run the MSI script as a platform script

The script in Deploy the Windows MSI with an RMM or MDM Platform finds the latest MSI, installs it on new devices, upgrades existing ones, and starts the app for the signed-in user.

  1. Intune does not pass parameters to platform scripts. Set your values as the defaults in the script’s param block, for example [string]$InviteCode = "<invite_code>", [string]$DeploymentKey = "<deployment_key>", and [string]$DeviceManagerName = "Intune".
  2. In the Intune admin center, go to Devices > Scripts and remediations > Platform scripts > Add > Windows 10 and later.
  3. Upload the script, and set:
    • Run this script using the logged on credentials: No, so that the script runs as the SYSTEM account.
    • Enforce script signature check: No, unless you sign the script yourself.
    • Run script in 64-bit PowerShell host: Yes. The default is 32-bit, and the script stops in 32-bit PowerShell.
  4. Assign the script to your device groups.

Intune runs a platform script once on each device, and runs it again only when you change the script. Use App Auto Update to keep devices current after the first install.

See Microsoft’s guide Use PowerShell scripts on Windows devices in Intune.

Staged User and zero-touch installation

In the default Zero Touch flow, the device should be registered to a specified user by setting the mdm-deploy-user and mdm-deploy-email parameters in the mdm-config.json file. The issued device certificate will contain a User Principal Name (UPN) username in the Subject Alternative Name field.

As a fallback, if user information is not specified or obtained during zero-touch flow the app will initially be registered to a STAGED USER, indicating it has been silently enrolled via zero touch installation. When a user logs into the device and accesses a service protected by Cloud Secure Edge, their username will automatically be associated with the device.

Upgrading the desktop app via Intune

  • With App Auto Update (recommended): Leave App Auto Update on in the Command Center, and set Ignore app version to Yes on the Intune app. CSE keeps each device current. See App Auto Update.
  • With Intune controlling the version: Turn off App Auto Update, or add DISABLE_AUTO_UPDATE=true to the command-line arguments. To roll out a new version, upload the new MSI to the same Intune app. The MSI upgrades the app in place and keeps the device’s registration, configuration, certificates, and tokens.

For fleet-wide guidance, including how to check versions and how to downgrade, see Update and Manage CSE Desktop App Versions.

The Windows zero touch script is being retired in February 2027. Use these steps only for existing deployments that you have not yet moved to the MSI.

Zero touch installs with the script require the CSE root certificate. See Distributing the CSE Root Certificate for Windows.

Prepare the zero touch install script for Windows

1.1 Download the SonicWall CSE Intune script. For legacy Banyan desktop app versions earlier than 4.0.0, use the Banyan App Installer.

1.2 Configure the script by entering the following values:

  • The INVITE_CODE value: In the Command Center, go to Settings > SonicWall CSE Client > the Deployment tab > Invite Code.

  • The DEPLOYMENT_KEY value: On the same tab, under Zero-Touch Deployment Using a Device Manager, select the Copy icon to the right of the Deployment Key value, and enter the copied value into your script.

  • The APP_VERSION value: Specify an app version, or leave this value blank to install the latest version.

The script generates an mdm-config.json file, downloads and installs the app, stages the app with the device certificate, and starts the app as the signed-in user. Set mdm_start_at_boot and mdm_hide_on_start to true in the script, so that the app starts consistently and does not come to the foreground at every sign-in.

Distribute the zero touch install script to Windows devices via Intune

2.1 Sign in to the Microsoft Intune admin center.

2.2 Go to Devices > Scripts and remediations > Platform scripts > Add > Windows 10 and later.

2.3 Enter a name and description.

2.4 Configure the Script settings, and then select Next:

2.5 Add Assignments, and select Add.

The desktop app appears on the assigned Windows devices, and then registers them with your CSE org.

Was this page helpful?