You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过编程开启Windows 10 Action Center及指定系统通知?

Solution for Enabling Action Center & Specific Notifications in Windows 10 Manufacturing Images

Great question! Since you're working with a locked-down Windows 10 base image for manufacturing, let's walk through how to build a patch that automates these settings, plus confirm your core question about programmatic control.

1. Enabling Action Center Programmatically

Action Center is typically disabled via registry keys or group policy. To enable it, you can modify these settings in your patch (via PowerShell, C#, or a batch script):

Registry Modifications

  • Machine-wide setting (overrides user preferences):
    Navigate to HKLM\Software\Policies\Microsoft\Windows\Explorer and set the DWORD value DisableNotificationCenter to 0. If the value doesn't exist, create it.
  • User-specific setting:
    Navigate to HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications and set the DWORD value ToastEnabled to 1. This ensures toast notifications (and Action Center) are enabled for the user.

Example PowerShell Script Snippet

# Enable Action Center machine-wide
Set-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Value 0 -Type DWord -Force

# Enable Toast notifications (required for Action Center) for current user
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Value 1 -Type DWord -Force

# Restart Explorer to apply changes immediately
Stop-Process -Name explorer -Force

2. Enabling Windows Updates & Defender Notifications

You don't need to touch toast notification implementation—just modify the system settings that control these specific notifications. Here's how:

Windows Updates Notifications

Modify the registry for the Update Orchestrator service:

# Enable Windows Updates notifications for current user
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.UpdateOrchestrator" -Name "Enabled" -Value 1 -Type DWord -Force

Windows Defender Notifications

Modify the registry for the Security Health UI (which handles Defender alerts):

# Enable Windows Defender notifications for current user
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.Windows.SecHealthUI" -Name "Enabled" -Value 1 -Type DWord -Force

3. Can We Programmatically Toggle Action Center & Specific Notifications?

Absolutely! You don't need to work with toast notification APIs to control these settings. Here's the breakdown:

  • Action Center: Use the registry keys mentioned above (set DisableNotificationCenter to 1 to disable, 0 to enable; same for ToastEnabled). For enterprise manufacturing deployments, you can also push these settings via Group Policy Objects (GPO) or provisioning packages.
  • Specific Notifications: Most system services and apps have dedicated registry entries under HKCU:\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\<App/Service ID>. Toggling the Enabled DWORD between 0 (off) and 1 (on) controls their notifications. You can find the correct ID for any app by browsing the entries in that registry path.

内容的提问来源于stack exchange,提问作者sshoots

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 06:46:17