Intune UAC Elevation Prompts: Disable Secure Desktop
In this article
Yes, you can configure Intune to move UAC (User Account Control) elevation prompts off the secure desktop, so they appear on the normal user desktop instead. This is done by setting the UAC policy “User Account Control: Switch to the secure desktop when prompting for elevation” to Disabled, which you can deploy via an Intune settings catalog policy or a custom OMA-URI.
What the Secure Desktop Is and Why It Exists
The secure desktop is a special, isolated desktop that Windows displays during UAC prompts. When a UAC prompt appears on the secure desktop, the rest of the screen is dimmed and the prompt is shown in a separate, protected session. This prevents malicious programs from mimicking the prompt or interacting with it, because the secure desktop blocks most interactions with the normal desktop.
Microsoft enables the secure desktop by default because it adds a layer of security against “clickjacking” or UI redressing attacks, where a malicious app could overlay a fake prompt or trick you into clicking a button. The secure desktop ensures that the prompt you see is genuine and that you are interacting directly with the Windows system, not with a rogue application.
Why You Might Want to Disable It
Despite its security benefits, the secure desktop can be inconvenient in certain enterprise scenarios:
- Automation and remote support: When a UAC prompt appears on the secure desktop, it can interrupt automated scripts or remote assistance tools that need to interact with the desktop. Disabling the secure desktop allows prompts to appear on the normal desktop, which some remote management tools can handle more easily.
- User experience: Some users find the dimmed screen and switch to the secure desktop jarring, especially if they are performing frequent elevation actions. Keeping the prompt on the normal desktop feels less disruptive.
- Kiosk or dedicated devices: On devices that run a single application or are used in a limited role, the secure desktop may cause unnecessary delays or confusion.
However, disabling the secure desktop reduces the security of the UAC prompt. It makes it easier for a malicious program to overlay a fake prompt or intercept the user’s response. Microsoft recommends keeping the secure desktop enabled unless you have a specific, justified need.
How to Configure It via Intune Settings Catalog
The recommended way to change this setting in Intune is to use the Settings Catalog, which provides a graphical interface for configuring Windows policies. Here are the steps:
- Sign in to the Microsoft Intune admin center.
- Go to Devices > Configuration profiles.
- Click Create profile and select Windows 10 and later as the platform, then choose Settings catalog as the profile type.
- Click Add settings and search for “secure desktop”.
- Under Local Policies Security Options, find User Account Control: Switch to the secure desktop when prompting for elevation.
- Set the toggle to Disabled.
- Assign the profile to the desired device groups and save it.
Once the policy is applied, the change takes effect after a restart or after the policy refreshes. You can also set the policy to Enabled to re-enable the secure desktop later.
Alternative: Custom OMA-URI for Direct Control
If you prefer or need to use a custom OMA-URI (for example, when the Settings Catalog does not cover a specific build), you can create a custom policy. The OMA-URI path for this setting is:
./Device/Vendor/MSFT/Policy/Config/LocalPoliciesSecurityOptions/UserAccountControl_SwitchToTheSecureDesktopWhenPromptingForElevation
Set the value to 0 to disable the secure desktop, or 1 to enable it. You can create this as a custom configuration profile in Intune under Devices > Configuration profiles > Create profile > Windows 10 and later > Custom.
Note that the exact OMA-URI may vary slightly depending on the Windows version, so always test in a pilot group first.
Common Issues and Troubleshooting
When deploying this setting, you might encounter a few issues:
- Policy not applying: Check that the device is properly enrolled in Intune and that the profile is assigned. Also verify that the device has the latest Intune management extension.
- Setting not taking effect: The change requires a restart on some Windows versions. After the restart, you can verify the setting by running
secpol.mscand checking the policy under Security Settings > Local Policies > Security Options. - Conflict with other policies: If you have multiple UAC-related policies, they may conflict. Ensure that no other policy is re-enabling the secure desktop.
- Remote support tools still fail: Disabling the secure desktop does not always fix automation issues if the tool itself cannot handle UAC prompts. You may also need to configure the “User Account Control: Behavior of the elevation prompt for administrators” policy to “Elevate without prompting” for specific scenarios.
Security Considerations and Best Practices
Disabling the secure desktop weakens the UAC protection. Before you roll this out, consider the following:
- Risk assessment: Evaluate the risk of UI redressing attacks in your environment. If users are not running as administrators and prompts are rare, the risk may be acceptable.
- Alternative: Instead of disabling the secure desktop entirely, consider using the “Prompt for consent on the secure desktop” option, which still shows the prompt on the secure desktop but requires less interaction.
- Test in pilot: Always test the setting on a small group of devices before broad deployment to ensure it does not break any critical workflows.
- Document the change: Keep a record of why you disabled the secure desktop and for which groups, so you can review it later.
Frequently Asked Questions
Will disabling the secure desktop affect all UAC prompts?
Yes, this policy affects all UAC elevation prompts on the device, whether they come from an administrator or a standard user. It does not change the behavior of the elevation prompt itself, only whether it appears on the secure desktop or the normal desktop.
Can I disable the secure desktop only for certain users or apps?
No, this policy is a device-wide setting. You cannot target specific users or applications with this particular setting. If you need per-app behavior, you would need to use application-specific settings or a different UAC policy.
Does disabling the secure desktop require a restart?
In most cases, yes. The policy change is applied during the next policy refresh, but a restart is often needed for the UAC behavior to fully change. It is safe to schedule a restart after the policy is applied.
Is it possible to disable the secure desktop via registry?
Yes, you can set the registry value PromptOnSecureDesktop under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System to 0. However, using Intune is the recommended method for managed devices because it ensures consistency and allows centralized management.
What happens if I set the policy to “Enabled” but the secure desktop still doesn’t appear?
If the secure desktop is not appearing even when the policy is enabled, check that the UAC is not disabled entirely (the “Enable LUA” policy) and that the device has not been configured to auto-elevate. Also, ensure that the policy is actually applied by checking the local security policy on the device.