Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

WindowsUserNotification.SetExpiresOnReboot

Sets whether the toast notification will remain in the Notification Center after a reboot.

Component Version macOS Windows Linux Server iOS SDK
WindowsUserNotification 13.1 ❌ No ✅ Yes ❌ No ❌ No ❌ No
MBS( "WindowsUserNotification.SetExpiresOnReboot"; Notification; Value )   More

Parameters

Parameter Description Example
Notification The reference number for the Windows User Notification. $Notification
Value The new setting.
1 to expire on debug, 0 if not.
0

Result

Returns OK or error.

Description

Sets whether the toast notification will remain in the Notification Center after a reboot.
If 1, notification will expire when the computer is rebooted.
Requires Windows 10, version 1903 (introduced in 10.0.18362.0)

Value is -1 to take Windows’ default setting.

Examples

Set notification to expire on reboot:

Set Variable [ $r; Value: MBS( "WindowsUserNotification.SetExpiresOnReboot"; $Notification; 1 ) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 21st January 2023, last changed 20th May 2025


WindowsUserNotification.ReleaseAll - WindowsUserNotification.SetFileName