Where settings are stored
Focus Assist ("Do not disturb") state sits under HKCU\Software\Microsoft\Windows\CurrentVersion\…QuietHours\… profile-tree values in Windows 11 (minute-since-midnight begin/end; off-hours rules as separate subkeys). It's per-user structured state with a supported UI counterpart.
The safe automation boundary
- Read freely, write conservatively: scheduled flipping (Focus at work hours) is a supported per-user scripting pattern; plows through notification-policies namespaces isn't.
- App exceptions are per-user list-membership; reset = delete the app's rule item, never whole-tree deletes.
- Alarm/repeat callers bypass categories have fixed meaning in the platform — see Focus settings page for what "priority" really admits.
Documentation first: when a behavior is this personal (millions of alarms daily), the platform stores it per account for a reason. Leave machine defaults alone everywhere else.