My Windows Toast Notification Script explained in details here: https://imab.dk/windows-10-toast-notification-script/
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. |
||
|---|---|---|
| Images | ||
| config-toast-adpwexpiration.xml | ||
| config-toast-custom.xml | ||
| config-toast-officeupgrade.xml | ||
| config-toast-osupgrade.xml | ||
| config-toast-rebootpending.xml | ||
| config-toast-waasfu.xml | ||
| config-toast.xml | ||
| Hidden.vbs | ||
| LICENSE | ||
| New-ToastNotification.ps1 | ||
| README.md | ||
| RunToastHidden.cmd | ||
| ToastNotificationScript2.0.2.zip | ||
| Windows 10 Toast Notification Script documentation.pdf | ||
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
- Moved all custom action scripts into the user's profile in $env:APPDATA\ToastNotificationScript
- Added support for getting deadline date/time dynamically for applications
- Configure DynamicDeadline with the Application ID