Skip to main content
This guide is for administrators deploying Draftable Clean settings through Active Directory Group Policy. For cloud-managed devices, see Configuring preferences with Microsoft Intune (Draftable Clean). For an overview of both methods, see Configuring preferences for your organization.

Administrative templates

Draftable Clean provides administrative templates (ADMX/ADML files) that list all available settings, making it easy to discover and configure them directly from the Group Policy editor without needing to know individual registry paths.
1

Obtain the templates

The templates are found in the GroupPolicy folder under the Draftable Clean installation path. The current folder is a shortcut that always points to the latest installed version.
If the current shortcut is not available, look for the folder with the highest version number under %LocalAppData%\DraftableClean\ — the latest templates will be inside its GroupPolicy subfolder.
v26.6.0 (June 2026) ships updated ADMX/ADML templates. Reinstall templates from a v26.6.0 or later installation before configuring new policies — especially Outlook add-in and must-clean settings introduced in this release.
2

Install the templates

Copy the Draftable Clean .admx file to:
Then copy the .adml language file from:
to:
Alternatively, copy the templates to your organization’s Central Store network path.
3

Edit policies

Once installed, Draftable Clean policies appear in the Group Policy editor under:
  • Computer Configuration > Administrative Templates > Draftable Clean
  • User Configuration > Administrative Templates > Draftable Clean
Some settings may only appear under one scope if they are not supported in the other.

Available policy settings

Draftable Clean policies are written under the following registry root, depending on the scope you select in the Group Policy editor:
Every policy below can be set under both Computer Configuration and User Configuration, with one exception: Configure HTTP listener port is available under Computer Configuration only. When the same policy is set in more than one location, the order of precedence is described in Priority of settings.
The Value name column gives the exact registry value to target when configuring settings directly via Intune OMA-URI, the Settings Catalog, or a registry script. Each value sits under the registry root above, in the subkey shown in the section heading (for example, the add-in settings live under ...\Clean\AddIn).

Licensing

The product key is not included in the administrative templates. To activate machines centrally, set it as a registry value (directly, via Intune OMA-URI, or with a registry script). Draftable Clean reads it on launch and activates automatically.

Outlook add-in (...\Clean\AddIn)

Sets the profile to use when no email recipients have been entered. Leave empty to use the global default profile.This setting is separate from domain rules. Domain rules apply once recipients are present; this policy controls the profile when an email has no recipients.
When enabled, users can override the cleaning profile for individual attachments in the add-in panel. When disabled, the assigned profiles cannot be changed.
The default format for the attachment summary inserted into the email body. Choose from table or list.
Controls what happens when the user tries to send an email while attachments are still being cleaned. Values: block (prevent sending), prompt (ask user), allow (send anyway).
Controls what happens when the user tries to send an email with attachments that contain tracked changes or comments. Values: block (prevent sending), prompt (ask user), allow (send anyway).
Controls what happens when the user tries to send an email with unsupported file types attached. Values: block (prevent sending), prompt (ask user), allow (send anyway).
Legacy: Specifies all add-in settings as a single JSON string. Prefer the individual settings, as this is only used if the individual settings are not configured. When enabled, the configured settings are applied. When disabled or not configured, application defaults are used.
Breaking change in v26.6.0 — Outlook add-in policy format. Outlook add-in settings are now exposed as individual Group Policy fields (default profile, each send-protection behaviour, attachment summary format, and profile-override). Previously these were configured through a single combined JSON value. A new ADMX template surfaces the DomainRules and AddInSettings policies explicitly.If your organization scripted or deployed the previous single JSON value, you must migrate to the new individual fields. Reinstall the v26.6.0 administrative templates (see Obtaining the templates) and reconfigure the add-in policies using the individual settings above.
Specifies domain-based profile assignment rules as a JSON string. Each rule maps email recipient domains to a specific cleaning profile. When enabled, the configured rules are applied. When disabled or not configured, no domain rules are applied.Registry subkey: ...\Clean\DomainRules.Domain rules map recipient email domains to cleaning profiles, so the Outlook add-in automatically applies the right profile based on who an email is being sent to. When you configure rules through the app UI (Settings > Add-In), Draftable Clean writes them to the registry for you. When you deploy centrally through the Configure domain rules policy, you set the same value — DomainRulesJson — directly, so it helps to know the JSON format.
The profile used when an email has no recipients is a separate setting — the Default cleaning profile (no recipients) field (NoRecipientsProfileId), listed under Outlook add-in in Available policy settings. Domain rules only apply once recipients are present.

JSON format

The policy value is a single JSON object with a rules array. Each rule maps one or more domains to a profile:
To start from a rule you have already built in the app, copy the JSON from the user setting at HKCU\Software\Draftable\Clean\DomainRules (value DomainRulesJson) and paste it into the policy. Check the profileId values before deploying widely — see below.

Choosing the profile ID

The profileId in each rule must match a profile that exists on the target machine. The three built-in profiles have fixed IDs that are identical on every machine, so they are always safe to reference:A profile that a user creates in the app is assigned a random, machine-specific ID. If a domain rule references such an ID and you deploy it to other machines, that profile will not exist there and Draftable Clean falls back to the default profile — so the rule silently stops doing what you intended. To reference a custom profile reliably across machines, deploy it as an admin cleaning profile so the same profile ID is present everywhere, then use that ID as the profileId.

How domain rules are matched

  • For a single recipient domain, the most specific matching pattern wins. An exact match beats a parent-domain (subdomain) match, which beats the wildcard *.
  • When an email has recipients across multiple domains, Draftable Clean applies the least specific of the matched rules. This is a deliberate safety measure: if any recipient falls outside your specific rules, the catch-all rule applies, so documents going to external or unknown recipients are cleaned with your default profile rather than a lighter internal one.
Always keep a catch-all rule with "domains": ["*"] that points to a full cleaning profile. Without it, an email addressed to both an internal and an external recipient can match only your internal rule and skip cleaning for everyone. The catch-all guarantees external mail is always cleaned.

Disabling cleaning for specific domains

To stop attachments being cleaned for certain recipients (for example, internal colleagues), point a domain rule at a profile that preserves all metadata:
1

Create a preserve-all profile

Launch the admin profile editor and create a profile with every metadata type set to Preserve. Deploying it as an admin profile means its profile ID is the same on every machine.
2

Note its profile ID

In the exported profile JSON, find the id value for the profile you created.
3

Add a domain rule

In your domain rules, add a rule whose domains list contains your internal domains and whose profileId is that profile’s ID.
4

Keep the catch-all rule

Leave your ["*"] rule pointing at a full cleaning profile so external mail is still cleaned.
If you have configured enforced cleaning rules, those metadata types are always removed regardless of the active profile — including a preserve-all profile. Domain rules cannot override enforced cleaning.

Email export — desktop Email button (...\Clean\Export)

These settings apply to the desktop application’s Email button, not the Outlook add-in.
Sets a custom email subject line used when exporting via the Email option in the application. When enabled, the configured subject is used as the default. When disabled or not configured, the application default subject is used.
Sets the default email body used when exporting via the Email option in the application. When enabled, the configured body text is used. When disabled or not configured, the application default body is used.
Controls how file attachment information is summarised in email exports from the application. When enabled, the selected format is used. When disabled or not configured, the default format (List) is used.

Cleaning profiles and enforcement (...\Clean\Profiles)

Specifies admin-managed cleaning profiles. When enabled, the configured profiles are applied as policy-managed profiles that users cannot modify or delete. When disabled or not configured, no admin profiles are applied and users see built-in default profiles.
You can edit this field by starting Draftable Clean with the --admin-profile-editor flag. This opens an in-memory profile editor where you can create, modify, and export a profile collection as a policy value.
The Configure admin cleaning profiles setting is a User Configuration policy that allows administrators to define cleaning profiles centrally. These profiles are deployed to users and cannot be edited by them.The policy value is a JSON string representing the profile collection. Draftable Clean includes a built-in admin profile editor to simplify creating and updating this JSON — this workflow is designed for Group Policy deployment.
The admin profile editor is intended for use with Group Policy. Launch Draftable Clean with the --admin-profile-editor flag, edit profiles visually, then copy the exported JSON into the Group Policy setting. If you deploy settings via Microsoft Intune, you can use the editor to generate the JSON value, but you must deploy it through your Intune configuration profile — see Configuring preferences with Microsoft Intune.
Launch Draftable Clean with the --admin-profile-editor flag:
This opens an in-memory profile editor where you can create, modify, and export a profile collection as the policy value.Workflow for updating admin profiles:
  1. Copy the existing profile collection JSON string from Group Policy
  2. Open Draftable Clean with the --admin-profile-editor flag
  3. Import the JSON string into the admin profile editor
  4. Make the required changes using the visual editor
  5. Copy the updated JSON string back to the clipboard
  6. Paste the updated JSON string into the Group Policy setting to apply the changes
Specifies metadata cleaning rules that are enforced across all profiles (built-in, admin-created, and user-created). When enabled, each enforced rule pins a specific metadata kind to a specific cleaning action (for example, remove, or replace with a fixed string). The enforced action overrides whatever action the active profile would otherwise apply for that kind. Users cannot change the action for enforced kinds in the profile editor. When disabled or not configured, no enforcement is applied and profiles fully control cleaning behaviour.The value is a JSON string of the form:
The Enforced cleaning rules policy lets administrators require that specific metadata types are always removed when files are cleaned — regardless of which cleaning profile is active. Enforcement is applied across all profiles: the built-in profiles, administrator-managed profiles, and any custom profiles users create later. Enforced rules are read-only at runtime and cannot be overridden by a profile’s own settings.This gives legal and IT teams a guaranteed baseline — for example, ensuring author, comments, and tracked-change metadata are stripped from every outbound document no matter how a profile is configured.
Enforced cleaning rules are defined as a JSON value in Group Policy. The set of available metadata types matches the Supported Metadata Types reference.

Privacy and telemetry (...\Clean\Reporting)

Controls whether error reports are automatically submitted to help identify and fix issues. When enabled, error reports are sent. When disabled, error reports are not sent. When not configured, the application default (send) is used.
Controls whether anonymous usage statistics are submitted to help improve the product. When enabled, statistics are sent. When disabled, statistics are not sent. When not configured, the application default (send) is used.

Local HTTP listener (...\Clean\Listener) — Computer Configuration only

Specifies the port number for the local HTTP listener used for communication between the Draftable Clean application and browser-based UI. When enabled, the configured port is used. When disabled or not configured, the default port (5044) is used.
For a complete and up-to-date list, refer to the administrative templates installed on your system — they are the definitive source of truth for all configurable settings.

Locking Outlook add-in defaults

Each Outlook add-in policy field can be set as a fixed value that end users cannot override from the desktop application’s Settings > Add-In panel. This lets administrators lock the default profile and send-protection behaviours to organisation standards while leaving other settings user-editable. Where a field is left unset by policy, the user’s own setting applies. See Priority of settings for the full precedence order.

Need help?

If you need assistance configuring Draftable Clean with Group Policy, contact the Draftable team at support@draftable.com.