mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 05:28:38 +00:00
The correct variable to use seems to be `FLEET_DEV_MDM_ENABLED`, `FLEET_MDM_WINDOWS_ENABLED_AND_CONFIGURED` is not present in the codebase
78 lines
2.9 KiB
Markdown
78 lines
2.9 KiB
Markdown
# 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](../Deploying/Introduction.md).
|
|
- 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:
|
|
1. Generate your certificate and key
|
|
2. Configure Fleet with your certificate and key
|
|
3. 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
|
|
|
|
1. 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 `_BYTES` expects 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 `_BYTES` suffix from the environment variable.
|
|
|
|
- [FLEET_MDM_WINDOWS_WSTEP_IDENTITY_CERT_BYTES](https://fleetdm.com/docs/deploying/configuration#mdm-windows-wstep-identity-cert-bytes)
|
|
- [FLEET_MDM_WINDOWS_WSTEP_IDENTITY_KEY_BYTES](https://fleetdm.com/docs/deploying/configuration#mdm-windows-wstep-identity-key-bytes)
|
|
|
|
2. Set the `FLEET_DEV_MDM_ENABLED` environment variable to `1`.
|
|
|
|
3. Restart the Fleet server.
|
|
|
|
### Step 3: Turn on Windows MDM in Fleet
|
|
|
|
Fleet UI:
|
|
|
|
1. Head to the **Settings > Integrations > Mobile device management (MDM) enrollment** page.
|
|
|
|
2. Next to **Turn on Windows MDM** select **Turn on** to navigate to the **Turn on Windows MDM** page.
|
|
|
|
3. Select **Turn on**.
|
|
|
|
fleetctl CLI:
|
|
|
|
1. Create `fleet-config.yaml` file or add to your existing `config` YAML file:
|
|
|
|
```yaml
|
|
apiVersion: v1
|
|
kind: config
|
|
spec:
|
|
mdm:
|
|
windows_enabled_and_configured: true
|
|
...
|
|
```
|
|
|
|
2. Run the fleetctl `apply -f fleet-config.yml` command to turn on Windows MDM.
|
|
|
|
3. Confirm that Windows MDM is turned on by running `fleetctl get config`.
|
|
|
|
<meta name="pageOrderInSection" value="1501">
|
|
<meta name="title" value="Windows setup">
|
|
<meta name="description" value="Learn how to set up Windows MDM features in Fleet.">
|
|
<meta name="navSection" value="Device management">
|