Fully disable Do Not Disturb and Focus Assist using registry/powershell

Martin Little 21 Reputation points
2025-12-12T12:03:20.08+00:00

We have a fairly large number of Windows Kiosk devices (25H2) delivered via Autopilot and managed in Intune and the last piece of the Puzzle (I think/Hope) is to disable Do Not Disturb.

Some users are turning on DnD and the User Profile retains the setting between sessions meaning that subsequent users do not get the alerts about how long is left in their session and they loose data when the device logs them out.

I have a configuration script that runs on login that performs a number of functions for me to remove any trace of user data and the like and I would like to be able to turn off DnD or even block it from being turned on in the first place. I would prefer to do this via reg keys in controlled via the Powershell since I already have this set up, rather than a separate CSP in Intune that I'd have to manage.

I have searched (I think) extensively and found a lot of suggestions that have not worked for me;
NOC_GLOBAL_SETTING_TOASTS_ENABLED set to 1
This comes up a lot, but seems to have no effect.
I have tried setting the local GPOs to but that seemed to turn notifications off and disable the ability to toggle it, but not enable notifications and block toggling it.

Please help, I've managed to work around all the other numerous issues to get a functional Kiosk set-up on Windows 11. If I can get this done, then I think I can finally move on from this project.

Windows for home | Windows 11 | Settings
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Aron 7,270 Reputation points Independent Advisor
    2025-12-12T14:18:48.2466667+00:00

    Hi, I understand how important it is to keep those session alerts visible on your kiosks. The issue happens because Windows 11 stores the Do Not Disturb and Focus Assist state in the user’s profile under the CloudStore registry, so when someone turns it on, that setting sticks for the next user. To fix this, you’ll need to reset that value at each logon and restart the notification service, so alerts show again. A quick way is to run a PowerShell script in user context that updates the $$windows.data.notifications.quiethourssettings key to “Unrestricted” and then restarts WpnUserService_*. You can also disable automatic rules in Settings so DND doesn’t turn itself back on. Would you like me to give you a ready-to-use PowerShell snippet for this, or help you package it for Intune, so it runs every sign-in?Regards,
    Aron

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.