14

Is there a way to programmatically turn on/off the Action Center? Additionally, I'd like to know if there is a way to programmatically turn on/off specific notifications? In manufacturing we use a base image of Windows 10 that has them turned off, and I am working on a patch to an application we make. One of the things I have been tasked with is turning them back on with my patch (or at least figuring out of it is NOT possible).

I don't need to know how to do Toast Notifications. I just need to make the Action Center visible, and turn on notifications for Windows Updates and Defender

sshoots
  • 141
  • 4
  • posted a bounty - looking specifically for answers to programmatically turning on Windows Update & Defender notifications in Action Center when they are currently off. – Mike May 29 '18 at 12:44

1 Answers1

6

You set the [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] "DisableNotificationCenter" key to dword:00000000

Registry.SetValue("HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer", "DisableNotificationCenter", 0, RegistryValueKind.DWord);

Then to enable Defender notifications:

Registry.SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\UX Configuration", "Notification_Suppress", 0, RegistryValueKind.DWord);

I'm not sure exactly which notification you are trying to enable regarding Windows Update.

TheSoftwareJedi
  • 34,421
  • 21
  • 109
  • 151
  • Thanks, I've seen that one around, but even if that does work it doesn't cover my additional need to be able to turn on the Windows Update notifications or Defender notifications. – sshoots May 29 '18 at 17:49
  • @sshoots See update. Not sure which update notification you are looking to enable. – TheSoftwareJedi May 29 '18 at 19:08
  • Haven't looked at the Defender notifications, but more interested in the Windows Update ones. Have systems with NoAutoUpdate=1 and Action Center Windows Update notifications set to off - so user is not informed of updates via 2 different methods. Turning NoAutoUpdate=0 is easy enough but users are still not notified due to Action Center notifications being off. Looking to script enabling notifications of windows updates for thousands of systems. – Mike May 31 '18 at 16:03