The correct variable to use seems to be `FLEET_DEV_MDM_ENABLED`, `FLEET_MDM_WINDOWS_ENABLED_AND_CONFIGURED` is not present in the codebase
2.9 KiB
Windows setup
Overview
Windows MDM features are not ready for production and are currently in development. These features are disabled by default.
Turning on Windows MDM features requires configuring Fleet with a certificate and key. This guide will walk you through how to upload these to Fleet and turn on Windows MDM.
Requirements
To use Fleet's Windows MDM features you need to have:
- A deployed Fleet instance.
- A Fleet user with the admin role.
Turning on Windows MDM
Fleet uses a certificate and key pair to authenticate and manage interactions between Fleet and Windows hosts.
This section will show you how to:
- Generate your certificate and key
- Configure Fleet with your certificate and key
- Turn on Windows MDM in Fleet
Step 1: generate your certificate and key
If you're already using Fleet's macOS MDM features, you already have a certificate and key. These are your SCEP certificate and SCEP private key you used when turning on macOS MDM.
If you're not using macOS MDM features, run the following command to download three files and send an email to you with an attached CSR file.
fleetctl generate mdm-apple --email <email> --org <org>
Save the SCEP certificate and SCEP key. These are your certificate and key. You can ignore the downloaded APNs key and the APNs CSR that was sent to your email.
Step 2: configure Fleet with your certificate and key
- In your Fleet server configuration, set the contents of the certificate and key in the following environment variables:
Note: Any environment variable that ends in
_BYTESexpects the file's actual content to be passed in, not a path to the file. If you want to pass in a file path, remove the_BYTESsuffix from the environment variable.
-
Set the
FLEET_DEV_MDM_ENABLEDenvironment variable to1. -
Restart the Fleet server.
Step 3: Turn on Windows MDM in Fleet
Fleet UI:
-
Head to the Settings > Integrations > Mobile device management (MDM) enrollment page.
-
Next to Turn on Windows MDM select Turn on to navigate to the Turn on Windows MDM page.
-
Select Turn on.
fleetctl CLI:
- Create
fleet-config.yamlfile or add to your existingconfigYAML file:
apiVersion: v1
kind: config
spec:
mdm:
windows_enabled_and_configured: true
...
-
Run the fleetctl
apply -f fleet-config.ymlcommand to turn on Windows MDM. -
Confirm that Windows MDM is turned on by running
fleetctl get config.