Forum Discussion
WDAC + Managed Installer + Autopilot pre-provisioning: Issues and best practices
Hi All
I'd like to know how others handle the timing of WDAC (App Control for Business) enforcement with Autopilot pre-provisioning in production.
Environment
- Windows 11, managed by Intune, [Entra joined]
- Autopilot pre-provisioning done by IT build engineers
- ESP has required (blocking) Win32 apps and device-level policies
- Managed Installer (IME) is enabled
- Unsigned WDAC base policy created with the WDAC Wizard and deployed through Intune.
Current process Once provisioning finishes, someone adds the device manually to an Entra group that receives the enforced WDAC base policy.
The problem
- Intune has no way to set the order in which apps and policies arrive during ESP.
- If WDAC enforcement arrives partway through ESP, it can block app installs or detection scripts and cause ESP to fail or time out.
- Apps installed before the Managed Installer is active aren't tagged, so they may be blocked once enforcement starts.
- The manual group step gets missed, and the device runs without protection until someone adds it.
What I want An automated, reliable way to enforce WDAC once provisioning is done (or safely from day 0), with no manual step.
Options I'm considering based on my search.
- An Azure Automation runbook or Logic App that queries Graph autopilotEvents for successful deployments and adds those devices to the enforcement group.
- A dynamic group based on a "build finished" signal, such as a primary user being assigned or a custom attribute. (Not sure of this works or if anyone has done this before)
- Deploying the WDAC policy as a Win32 app with a requirement rule so it applies only after ESP. (just an idea)
Questions
- Has anyone run into this in production? Which approach did you settle on?
- Does Microsoft have a recommended pattern for WDAC + Managed Installer + Autopilot pre-provisioning?
- Did enforcing WDAC from day 0 cause problems for you, such as ESP timeouts, IME blocks or 0x800705b4?
Any real-world experience would be appreciated. Thanks!
3 Replies
- KetanKamble3894Copper Contributor
- Dynamic group on primary user is flaky; ESP finishes before user attribute lands, so no clean signal
- Skip the group switch: deploy WDAC as audit mode from day 0, flip to enforced later
- Managed Installer policy must land first; apps installed before it won't carry the tag, so reinstall or use hash/publisher rules
- Add publisher or hash allow rules for IME and your detection scripts, so enforcement can't break ESP
- Runbook on autopilotEvents works, but filter on deploymentState success
- AmezingtechsataraIron Contributor
Adding a couple of specifics to Jamony's reply, since your option 3 and the tagging question both have documented answers.
The reason audit mode matters here is a hard rule in the docs, not just caution: once the Intune Management Extension is enabled as the managed installer, only apps deployed after that point get tagged — there's no retroactive tagging. So anything installed before the managed installer was active stays untagged, and that's what the audit pass is really hunting for.
On option 3, I'd drop the Win32 app idea: App Control policies are delivered through the ApplicationControl CSP from the Endpoint security blade, not as an app package, so wrapping the policy in a Win32 app with a requirement rule doesn't map onto how Intune delivers it.
Two practical notes for the runbook route: the docs note devices can take up to 30 minutes to pick up a managed installer policy, so even a perfect Graph trigger can't make enforcement land instantly after the event. And if you have any existing AppLocker policy, enabling the managed installer deploys a dummy AppLocker rule that merges with it — an empty rule set merged as NotConfigured can flip to enforced, so check that before rolling the managed installer out widely.
Your concern is the gap between pre-provisioning and enforcement: apps may install before Managed Installer is active, while enforcing the policy during ESP could block something needed for the build.
I can’t confirm a Microsoft-recommended automation pattern that guarantees enforcement immediately after your specific provisioning flow. I’d start with a pilot using your intended base policy in audit mode. Microsoft recommends audit mode when apps may have been installed before Managed Installer was configured. Review the App Control events, identify the required apps and scripts that would be blocked, and add appropriate trust rules before enforcement.
Test both technician and user flows: device ESP runs again during the user flow and can pick up newly assigned policies. Don’t treat a primary-user assignment alone as proof that all provisioning has finished. If you evaluate a Graph-driven group assignment, validate its timing, failures and retry behavior in the pilot, and escalate the required support boundary to Microsoft before relying on it for production.