Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically turn on/off Action Center

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

like image 381
sshoots Avatar asked May 25 '18 14:05

sshoots


People also ask

How do I turn off Windows Action Center notifications?

In the System window, click the “Notifications & actions” category on the left. On the right, click the “Turn system icons on or off” link. Scroll down to the bottom of the list of icons you can turn on or off, and click the button to disable Action Center. Close the settings Windows and you're done.

How do I turn off actions in Windows 10?

Turn off Action Center in Windows 10 Home or ProGo to Settings > System > Notifications & actions and click Turn system icons on or off. Then at the bottom of the list, you can flip Action Center off or back on again. And, this option is available in both Home and Pro versions of Windows 10.

What is show notifications in Action Center?

The Action Center is a hub for all system notifications, such as incoming emails, security and maintenance, tips from Microsoft, and more. Microsoft also alerts you when a Wi-Fi network is near your location.


1 Answers

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.

like image 85
TheSoftwareJedi Avatar answered Sep 19 '22 00:09

TheSoftwareJedi