Windows Client Mass Deployment Guide
For advanced deployments like InTune integration, the NextDNS Windows application is available as an MSI. This installer enables automated deployment with pre-configuration of the profile.
The MSI installer is available at https://nextdns.io/download/windows/stable.msi
Installation Properties
The following properties can be set during the installation:
- PROFILE: sets the system wide profile id. When set this way, the end user is not able to change the profile ID from the UI nor stop the client. Only an administrator can, by stopping the NextDNSService service.
- UI (0 or 1, default:1): installs the application with or without the systray UI. When the UI is disabled, NextDNS can't be disabled by the end user.
- ARP (0 or 1, default:1): hides the application from Windows' Add/Remove Program
- REPORT_DEVICE_NAME (0 or 1, default: 1): report the device name and model with DNS queries so they appear in the logs and analytics.
- EXCLUDE_SSIDS (comma-separated strings): defines a list of WiFi SSIDs on which the client should automatically disable itself. Use commas to pass more than on SSID and quotes if SSIDs contain spaces. SSIDs names are case-sensitive.
- EXCLUDE_DOMAINS (comma-separated strings): defines a list of domain authorities to exclude from NextDNS resolution. Those domains (and all their sub-domains) will use the system's DNS for resolution.
Here are some examples:
You need to run the command prompt as an administrator, otherwise those properties will be ignored.
- Force a profile ID abcdef, disable the UI and hide the application from Add/Remove Program:
msiexec /qn /i NextDNSSetup-X.X.X.msi PROFILE=abcdef UI=0 ARP=0
- Disable the client when connected the "Corp Network" or "Home" WiFi networks:
msiexec /qn /i NextDNSSetup-X-X-X.msi EXCLUDE_SSIDS="Corp Network,Home"
All properties above can also be specified as MST properties for GPO/SSCM deployments.
Scripted Installation
To automate the installation of the client from the latest version, you may use the following PowerShell script if your deployment system supports it:
Invoke-WebRequest -Uri "https://nextdns.io/download/windows/stable.msi" -OutFile "$env:TEMP\NextDNSSetup.msi"
msiexec /qn /i "$env:TEMP\NextDNSSetup.msi" PROFILE=abcdef
Uninstallation
To silently uninstall the client (if Add/Remove Program was not disabled via ARP=0), run the following command:
"C:\Program Files (x86)\NextDNS\Uninstall.exe" /S
34 replies
-
New Windows 11 machine, stable MSI installed as Administrator with PROFILE=.... and UI=0, service works briefly and then crashes every ~2 minutes. Windows event log just shows the Service Control Manager restarting the "NextDNS DNS53 to DoH proxy" service over and over.
-
Hello, any news on the msi version with the captive portal fix? I have deployed this to my company’s pcs but have to uninstall occasionally due to the fact that captive portals are not usable with nextdns running. Thanks!
-
Setting REPORT_DEVICE_NAME=1 still does not work
-
Hi, any other switches that can be set on install?
Having issues with captive portals. I there a "detect-captive-portal" switch?
-
It would only work for me if i use the full path for some reason. Removing the /qn option gave me an error that wouldn't show otherwise