How to Increase the Notification Limit in Action Center Beyond 20?


MesterPerfect

AhmedBakr
Local time
5:15 PM
Posts
19
Location
sohag, Egypt
OS
windows11
Hi everyone,

I'm currently using both Windows 10 and Windows 11, and I've enabled push notifications on several websites. As a result, I receive a large number of notifications in the Action Center.

However, I've noticed that the Action Center only displays the 20 most recent notifications, and I get the message:
_"Action center shows only the 20 most recent notifications."_

Is there any way to increase this limit from 20 to 50 or more? I'd appreciate any advice or potential workarounds that can help me manage notifications more efficiently.

Thanks in advance!
 

My Computer

System One

  • OS
    windows11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP EliteDesk 800 G2 TWR
    CPU
    Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 CPUs), ~3.2G
    Memory
    8192MB RAM
    Graphics Card(s)
    Radeon RX 580
    Sound Card
    USBAUDIO.sys
    Screen Resolution
    1024 × 768
    Hard Drives
    Disk 0 Capacity: 465.76 GB, Disk type: Basic, Disk status: Online
    Disk 1 Capacity: 223.56 GB, Disk type: Basic, Disk status: Online
    Disk 2 Capacity: 931.51 GB, Disk type: Basic, Disk status: Online
    Keyboard
    AULA F2088
    Internet Speed
    30MB
    Browser
    Google Chrome
    Antivirus
    Kaspersky Internet Security
Nope.

You could change the priority and try to discriminate between what notifications you get…. Maybe?

 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.5039
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    1000/400Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
UPDATED: Skip down to post #8 for a shorter solution.

This was surprisingly easy.

1. Download DB Browser for SQLite.
2. Open "C:\Users\GARLIN\AppData\Local\Microsoft\Windows\Notifications\wpndatabase.db"

Windows 10 x64-2024-09-15-19-45-33.png

3. Browse Data -> Table -> "Metadata". Change the value for toast:maxCount.

Windows 10 x64-2024-09-15-19-46-06.png

4. File -> Exit. When asked, save changes to database. While the database is loaded, no new notifications can arrive. Apparently the Action Center counter stops after 99 messages.

Windows 10 x64-2024-09-15-19-54-22.png
 
Last edited:

My Computer

System One

  • OS
    Windows 7
Nice.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.5039
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    1000/400Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
When you ask Action Center to clear notifications -- it will only remove 20 at a time. So you have to hit Clear Notifications over and over, until they're all gone.
That's probably hard-coded into Action Center.
 

My Computer

System One

  • OS
    Windows 7
I wrote a short batch file, which runs without needing DB Browser. Update the "$maxCount = " value for how many notifications to keep.
When the script runs, it may ask you for permission to run as Administrator.

IncreaseNotifications.bat:
Code:
<# : batch script
@echo off
powershell -nop ^
"if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { ^
    Start-Process 'cmd' -ArgumentList '/c start /min %~dpnx0' -Verb RunAs ^
} ^
else { ^
    Invoke-Expression ([System.IO.File]::ReadAllText('%~f0')) ^
}"
goto :eof
#>

if (-not (Get-Module PSSQLite -ListAvailable)) {
    Install-Module PSSQLite -Scope CurrentUser -Force
}

$maxCount = 50

$DataSource = "$env:LOCALAPPDATA\Microsoft\Windows\Notifications\wpndatabase.db"
Invoke-SqliteQuery -DataSource $DataSource -Query $('UPDATE "main"."Metadata" SET "Value"=' + $maxCount + ' WHERE "_rowid_"=''2''')
 

My Computer

System One

  • OS
    Windows 7
FYI, you probably want to change both toast:maxCount and toastCondensed:maxCount .

If you want to keep the notifications alive longer, or not auto dismiss:

REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility" /v MessageDuration /t REG_DWORD /d 300 /f
REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\Launcher" /v DisableLightDismiss /t REG_DWORD /d 1 /f

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ImmersiveShell\Launcher create(or set) a DWORD(32-bit) value labeled as "DisableLightDismiss" and set it to "1".
Removing the value or setting it to "0" will restore the default behaviour.

Now if I could only get it to automatically expand the notifications :/
 

My Computer

System One

  • OS
    W11/10/vhdx
UPDATED: Skip down to post #8 for a shorter solution.

This was surprisingly easy.

1. Download DB Browser for SQLite.
2. Open "C:\Users\GARLIN\AppData\Local\Microsoft\Windows\Notifications\wpndatabase.db"

View attachment 108830

3. Browse Data -> Table -> "Metadata". Change the value for toast:maxCount.

View attachment 108831

4. File -> Exit. When asked, save changes to database. While the database is loaded, no new notifications can arrive. Apparently the Action Center counter stops after 99 messages.

View attachment 108832
Hey brother.

Thanks a lot for your solution. Its working well. But i can increased max. 49. I tryed 99 but it doesnt work. Do you have any recommendations for me ?

My second question; Is it possible to send Windows notifications in real time to telegram or gmail address?
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
Thanks a lot for your solution. Its working well. But i can increased max. 49. I tryed 99 but it doesnt work. Do you have any recommendations for me ?

My second question; Is it possible to send Windows notifications in real time to telegram or gmail address?
The database can easily track more notifications than the Action Center can handle, but that's an Action Center problem.

Windows notifications are designed to flow into Windows, and not the other way around. Usually a developer will create a Windows app or cloud service which relays notifications to outside endpoints, at the same time. But you can't ask Windows to re-forward notifications.
 

My Computer

System One

  • OS
    Windows 7
you can use sendEmail to schedule a task triggered on an event ID. i have it in use via a gmail with an app password to send emails whenever users logon to specific PCs. i dont know what event is logged for action center notifications. you'll have to figure that part out


here's a how to, just modify what you need to when you figure out the correct trigger:

Make Windows Send Email Notifications on User Login
  • Download and Extract sendEmail portable app to desired location
  • Create Gmail account
  • Create App Specific Password
  • Set to forward to good Email Account (as this gmail is just a junk account used for this task)
  • Task Scheduler > Create Task
  • Name the Task and Description and Select the “Run whether the user is logged on or not” radio button. Don’t save the task yet. – Set to Computer Administrator account
1737928259437.webp
Triggers > New > “At log on” > “Any user” > Check Enabled
1737928271016.webp
  • Actions > New > add a new action.
  • Type the sendEmail application path under the “Program or Script” field, and then add the below command as the arguments in the “Add arguments” field (edit to your desired intention (ie - remove computer name, username, etc)

-f yourEmail@gmail.com -t yourEmail@gmail.com -xu yourEmail@gmail.com -xp APP_PASSWORD -s smtp.gmail.com:587 -o tls=yes -u "EMAIL_SUBJECT" -m "%username% has logged on to %computername%"


While adding, don’t forget to replace “yourEmail@gmail.com” with your actual email address and PASSWORD with your actual email account password. If you want to you can also edit the email subject [-u] and the message part [-m].

Note: if you are using other email services, then you also have to change the SMTP server address and the port number.

Here is what the command line options actually mean.
  • -f – From email address
  • -t – To email address
  • -xu – Username
  • -xp – Email account password
  • -s – SMTP server address with port number
  • -u – Email subject
  • -m – Email body

  • Click on the “Ok” button to save the changes.
  • Conditions > uncheck the “Start the task only if the computer is on AC power” & “stop if the computer switches to battery power”
 

My Computer

System One

  • OS
    Windows 11 Pro
The database can easily track more notifications than the Action Center can handle, but that's an Action Center problem.

Windows notifications are designed to flow into Windows, and not the other way around. Usually a developer will create a Windows app or cloud service which relays notifications to outside endpoints, at the same time. But you can't ask Windows to re-forward notifications.
can we output notifications to word, excel or text document ?
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
There's a paid Microsoft Store app Notification Logger, which saves a record of your notifications (probably by mirroring them from the database), and exporting to CSV. I have no idea how good the app is. The screenshot indicates the app has smart filtering by well-known categories.
 

My Computer

System One

  • OS
    Windows 7
There's a paid Microsoft Store app Notification Logger, which saves a record of your notifications (probably by mirroring them from the database), and exporting to CSV. I have no idea how good the app is. The screenshot indicates the app has smart filtering by well-known categories.
Brother;

Thank you soooooo so so so so so much for this solition... its working great.. you save my life :)
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
There's a paid Microsoft Store app Notification Logger, which saves a record of your notifications (probably by mirroring them from the database), and exporting to CSV. I have no idea how good the app is. The screenshot indicates the app has smart filtering by well-known categories.

Do you have any idea for cleaning windows notifications center after 50 notif.

i doing manually rn, if we can find solution for auto clean its will be perfect..

I am grateful for your help
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop
Guys, i cant still solved automatical notif. cleaning. Any idea for this? If we can do it we can recive notif unlimited..
 

My Computer

System One

  • OS
    windows 11
    Computer type
    PC/Desktop

Latest Support Threads

Latest Tutorials

Back
Top Bottom