No description
Find a file
2020-07-22 15:47:24 +01:00
.gitattributes Initial commit 2020-07-22 14:01:03 +01:00
badgeimage.jpg Simple Toast Notifications 2020-07-22 14:02:37 +01:00
CustomMessage.xml Simple Toast Notifications 2020-07-22 14:02:37 +01:00
heroimage.jpg Simple Toast Notifications 2020-07-22 14:02:37 +01:00
InternetAccessProblems.xml Simple Toast Notifications 2020-07-22 14:02:37 +01:00
LeaveComputerSwitchedOn.xml Simple Toast Notifications 2020-07-22 14:02:37 +01:00
LICENSE Initial commit 2020-07-22 14:01:03 +01:00
MicrosoftExchangeLimitedFunctionality.xml Simple Toast Notifications 2020-07-22 14:02:37 +01:00
PhoneSystemProblems.xml Simple Toast Notifications 2020-07-22 14:02:37 +01:00
README.md Update README.md 2020-07-22 15:47:24 +01:00
Toast_Notify.ps1 Fixed issue with displaying the LastLoggedOnDisplayName when the reg key does not exist 2020-07-22 15:09:19 +01:00

Toast

Toast_Notify.ps1 is a simple Toast Notification script designed to be deployed as a package from MEMCM
Toast_Notify.ps1 will read an XML file on a file share so Toast Notifications can be changed "on the fly" without having to repackage. To create a custom XML, copy CustomMessage.xml and edit the text you want to display in the toast notification. Reference that file using one of the script parameters.

The following files should be present in the Script Directory when you create the package in MEMCM:-

Toast_Notify.ps1
BadgeImage.jpg
HeroImage.jpg
CustomMessage.xml

.PARAMETER XMLScriptDirSource
Specify the name of the XML file to read. The XML file must exist in the same directory as Toast_Notify.ps1. If no parameter is passed, it is assumed the XML file is called CustomMessage.xml.

.PARAMETER XMLOtherSource
Specify the location of the Custom XML file used for the Toast when it is not in the MEMCM package

.EXAMPLE
Toast_Notify.ps1 -XMLOtherSource "\fileserverhome\xml\CustomMessage.xml"

.EXAMPLE
Toast_Notify.ps1 -XMLSciptDirSource "PhoneSystemProblems.xml"

.EXAMPLE
Toast_Notify.ps1

Known Issues
Currently, the images in the XML can only be read from the local files system. This is not an issue if we are deploying the package from MEMCM. Further development will see the ability to convert images to Base64 or host them on a web server.

Thanks for the help from
@guyrleech @young_robbo

Community
Seriously check our Martin Bentsson's work on Toasts. It is very comprehensive. https://www.imab.dk/windows-10-toast-notification-script/ I challenged myself to learn how Windows Toasts work so this was a labour of love for me. I have enjoyed the ride so far