My Windows Toast Notification Script explained in details here: https://imab.dk/windows-10-toast-notification-script/
Find a file
Paul Wetter 94625157ca Added CustomAction and Detection
Added functionality for custom actions and detection so you can have the toast display if a script returns a $true  It can then build and run a custom protocol.

The main goal here is to be able to create flexibility to toast for any custom action.  And if desired, build a custom action protocol for that execution.

## Config XML Changes
* CustomActions element area.  This includes the DetectionScript, Action, and optional ExecutionScript
** If the ExecutionScript is enabled, a new protocol with the Action Name is created.  Note that you have to set the Action element to match the named custom action here if you want to use it.
## New Variables
* CustomActionsEnabled - Enables/Disables the custom action
* CustomDetection - The destection script.
* CustomAction - The XML that contains the action name and Script.
* CustomActionName - The name of the custom action.
## Functions
* Write-FullCustomAction - Writes the action script to the requested directory for the protocol to reference.
* Write-FullCustomProtocol - Writes the protocol information into the registry so the action can be called from there.
## New Check
* Additional Check for conflicts with custom actions being enabled.
## Misc
* Code for determining  the results of custom actions, if enabled.
* Custom action Toast display section.
* modified default toast to not display when custom actions are enabled.
2020-10-17 01:15:25 -05:00
Images Delete lol.ps1 2020-07-03 21:27:47 +02:00
config-toast-adpwexpiration.xml Uploaded as a part of version 2.0.0 2020-08-22 21:06:10 +02:00
config-toast-custom.xml Added CustomAction and Detection 2020-10-17 01:15:25 -05:00
config-toast-officeupgrade.xml Updated in version 2.0.1 2020-09-03 20:48:32 +02:00
config-toast-osupgrade.xml Updated in version 2.0.1 2020-09-03 20:48:32 +02:00
config-toast-rebootpending.xml Added CustomAction and Detection 2020-10-17 01:15:25 -05:00
config-toast-waasfu.xml Updated in version 2.0.1 2020-09-03 20:48:32 +02:00
config-toast.xml Uploaded as a part of version 2.0.0 2020-08-22 21:06:10 +02:00
Hidden.vbs Add files via upload 2020-07-03 21:23:56 +02:00
LICENSE Initial commit 2020-07-03 19:34:35 +02:00
New-ToastNotification.ps1 Added CustomAction and Detection 2020-10-17 01:15:25 -05:00
README.md Update README.md 2020-09-05 20:47:57 +02:00
RunToastHidden.cmd Add files via upload 2020-08-23 09:01:56 +02:00
ToastNotificationScript2.0.2.zip Removed obsolete config.xml sample 2020-09-13 17:22:41 +02:00
Windows 10 Toast Notification Script documentation.pdf Uploaded as a part of version 2.0.0 2020-08-22 21:06:10 +02:00

Toast Notification Script

Current version: 2.0.2

Download the complete Windows 10 Toast Notification Script: https://github.com/imabdk/Toast-Notification-Script/blob/master/ToastNotificationScript2.0.2.zip

Blog posts, documentation as well as if any questions, please use: https://www.imab.dk/windows-10-toast-notification-script/

What's New

  • 2.0.2 - Fixed an error in the custom protocols
    • The path to the custom scripts was incomplete
  • 2.0.1 - Updated custom action scripts!
    • Moved all custom action scripts into the user's profile in $env:APPDATA\ToastNotificationScript
      • $env:ALLUSERSPROFILE was used previously. This is a bad location if device is used by multiple users due to permission issues
    • Updated all custom action scripts to invoke their respective action via WMI
      • Rewritten all custom action scripts
    • Added logic allowing new custom action scripts to be created if necessary
      • Now checks script version in registry
      • If newer version is available from the script, new custom action scripts will be created
        • This allows me to make sure the relevant scripts are in place in case I change something along the way
    • Modified script output of custom script for RunPackageID to pick up Program ID dynamically
  • Added support for getting deadline date/time dynamically for applications
    • Configure DynamicDeadline with the Application ID