How to clear Windows Notifications from Action Center?

Page 2 of 2 FirstFirst 12

  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install

    Hello @x509,

    x509 said:
    Just curious about the words with background shading. How do you set that background? Or is it automatic in the forum software?

    You can put C & /C with [ ] around each for the text you want shaded.

    I hope this helps.
      My Computer

  2. Posts : 1,680

    Good thought. But it didn't work for me.
    Paul Black said:
    Hello @TairikuOkami,
    > How to Turn On or Off Notifications from Apps and Senders in Windows 10
    The .reg files to turn ON and OFF PushNotifications is . . .
    OFF [ as per the Tutorial ]
    ON [ as per the Tutorial ]
    Which equates into the Batch Script . . .
    Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 0 /f
    Reg Add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /t REG_DWORD /d 1 /f
      My Computer

  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install

    Hello @margrave55,

    margrave55 said:
    Good thought. But it didn't work for me.

    What did NOT work for you?
      My Computer

  4. Posts : 5,450
    Windows 11 Home
    Thread Starter

    Callender said:
    Thanks for the tip, unfortunately, it is empty.
    Attached Thumbnails Attached Thumbnails How to clear Windows Notifications from Action Center?-capture_03292021_120041.jpg  
      My Computer

  5. Posts : 3,274

    Using a Powershell script as an alternative to Nircmd or AutoHotKey to send keys ( similar to the method pointed out in your second link ) can work but just like those methods, it shows inconsistent behaviour in the sense that when sending the following key sequence on my system eg,

    start ms-actioncenter:

    if there are no notifications to clear, then the script will move to the next button and activate it.

    So the script only works consistently if there will "always" be notifications to clear and hence only if the "Clear All Notifications" Button will be present when running the script.

    Also, on my System, I need to send two SHIFT+TABS to reach the "Clear" button after activating Action Center, but I have seen it require from 1 to 3 SHIFT+TABS depending on what else is present in the lower half of the notification area.

    Powershell script test clear Notifications in Action Center
    # 1 start the action center
    # 2 prepare to send keys
    # 3 send keys
    # optional-Start-Sleep commands in between send keys in case script works too fast and skips instructions
    # Adjust no. of ("+{TAB}") required
    # there need to be notifications present or the next tabbed button gets activated
    start ms-actioncenter:
    Add-Type -AssemblyName System.Windows.Forms
    [System.Windows.Forms.SendKeys]::SendWait(" ")
    # remove the Start-Sleep if everything works
    Start-Sleep -MilliSeconds 1000
    Clearly it is not a proper solution, but just an idea about how to go about attempting it using native Windows commands.

    As a side note, there is no Sendkeys method for the WIN key, but it can work using the mod shown here:
    PowerShell/WinKeys.ps1 at master . stefanstranger/PowerShell . GitHub
      My Computers


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 00:39.
Find Us

Windows 10 Forums