Forum Discussion

unslog's avatar
unslog
Brass Contributor
Nov 25, 2024

How to centrally switch off Focus Assist / Do not disturb

Hello,

 

Please advise if it’s possible to push out a policy or reg edit script that will completely switch off Focus Assist (Windows 10) or Do not Disturb (Windows 11) ?

 

This is causing havoc with our 3CX SIP app –

 

When this feature is on, it prevents 3CX pop-up appearing when an inbound call is routed to the user’s device. I have spent hours researching and testing various registry settings and intune policies, none of which I can get working for both Windows 10 and Windows 11 endpoints.

 

do not disturb is enabled by default OOB. This setting appears to be controlled at user level (HKEY_CURRENT_USER).

 

The only thing that works, is for the user to “Manually” switch off this feature, as per below.  This isn’t convenient when you have hundreds of endpoints! Users will not do the steps if you email or message them.

 

or

 

Surely there must be a way to control this functionality via GPO?

 

Examples of changes that do not work;

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings

Intune

 

7 Replies

  • iu360's avatar
    iu360
    Copper Contributor

    Helllo

    To disable Focus Assist or Do Not Disturb across multiple devices, you can deploy Group Policy or Intune configurations. Since the settings are typically user-specific, a registry modification targeting HKEY_CURRENT_USER might work. For Windows 10 and Windows 11, creating an automated solution via Group Policy or startup scripts can help manage this across numerous endpoints, ensuring users do not need to manually disable the feature. This approach allows for a more centralized, streamlined process in large-scale environments.

    • unslog's avatar
      unslog
      Brass Contributor

      Hello. 

       

      PLease can you advise the registry settings or intune policy that actually work? I have tried both options in this thread as suggested by kyazaferr, none of which worked. thanks

  • unslog's avatar
    unslog
    Brass Contributor

    Thank you for your swift reply :)

     

    I will test this out and revert back in due course.

     

    Regards

  • Registry-Based Approach

    The Focus Assist / Do Not Disturb settings are controlled primarily by HKEY_CURRENT_USER, which means applying these settings requires per-user customization. Here are the key registry settings you can modify:

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\FocusAssist

    Disable Do Not Disturb (Windows 11)

    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings

    Deploy via Intune

    To deploy these registry changes centrally with Intune:

    1. Create a PowerShell Script:

    # Disable Focus Assist/Do Not Disturb
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\FocusAssist" -Name "QuietHoursActive" -Value 0 -Force
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\FocusAssist" -Name "QuietHoursEnabled" -Value 0 -Force
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" -Name "NOC_GLOBAL_SETTING_DND" -Value 0 -Force

    # Disable Focus Assist/Do Not Disturb
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\FocusAssist" -Name "QuietHoursActive" -Value 0 -Force
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\FocusAssist" -Name "QuietHoursEnabled" -Value 0 -Force
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings" -Name "NOC_GLOBAL_SETTING_DND" -Value 0 -Force

    Upload to Intune:

    • Navigate to Devices > Scripts > Add Script.
    • Upload the PowerShell script and assign it to user groups.

    Deploy via Group Policy Preferences

    If you are using Active Directory and Group Policy:

    1. Open Group Policy Management.
    2. Navigate to:
      • User Configuration > Preferences > Windows Settings > Registry.
    3. Create new registry preferences:
      • Path: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\FocusAssist
        • Key: QuietHoursActive, Value: 0
        • Key: QuietHoursEnabled, Value: 0
      • Path: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Notifications\Settings
        • Key: NOC_GLOBAL_SETTING_DND, Value: 0
    4. Apply the GPO to the relevant Organizational Units (OUs).

    Consider Using CSPs in Intune

    You can also use Intune Configuration Profiles with Custom OMA-URI Settings:

    1. Go to Endpoint Manager > Devices > Configuration profiles > Create profile.
    2. Select Platform: Windows 10 and later and Profile type: Templates > Custom.
    3. Configure OMA-URI settings:
      • URI: ./User/Vendor/MSFT/Policy/Config/Notifications/DisableDND

     

    • unslog's avatar
      unslog
      Brass Contributor

      Hi,

       

      I tested this script on two devices (Window 11 and Window 10), both failed. Here is the extract from IntuneManagementExtension.log (Windows 10 device).

      Please advise

       

      Also getting an error using URI 

       

      • unslog's avatar
        unslog
        Brass Contributor

        Hi kyazaferr 

         

        Are you able to assist further please? 

         

        We still cannot find a solution to this problem.

         

Resources