From b6d8d943e58f39b80f8e2c3b606863deaddf348b Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:26:40 +0000 Subject: [PATCH 1/8] Update README.md --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6593023..8e42078 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,24 @@ # Version History +**Version 1.2.10 - 10/01/21** + +-Removed XMLOtherSource Parameter +-Cleaned up XML formatting which removed unnecessary duplication when the Snooze parameter was passed. Action ChildNodes are now appended to ToastTemplate XML. + **Version 1.2 - 09/01/21** -Added logic so if the script is deployed as SYSTEM it will create a scheduled task to run the script for the current logged on user. -If the Toast script is deployed in the SYSTEM context, the script source is copied to a new folder in the users %TEMP% Directory. -The folder is given a unique GUID name. - -A scheduled task is created for the current logged on user and is unique for the each time the Toast Script is deployed. Each scheduled task is named using the User SID and the unique Task GUID. -If the script is deployed to the current logged on user, a scheduled task is not created and the script is run as normal +-Added logic so if the script is deployed as SYSTEM it will create a scheduled task to run the script for the current logged on user. +-If the Toast script is deployed in the SYSTEM context, the script source is copied to a new folder in the users %TEMP% Directory. The folder is given a unique GUID name. +-A scheduled task is created for the current logged on user and is unique for the each time the Toast Script is deployed. Each scheduled task is named using the User SID and the unique Task GUID. +-If the script is deployed to the current logged on user, a scheduled task is not created and the script is run as normal. **Version 1.1 - 30/12/20** -Added a Snooze option (Use the -Snooze switch) +-Added a Snooze option (Use the -Snooze switch). **Version 1.0 - 22/07/20** -Release +-Release # Project Outline From 524e16c94cd32f6002538a8c4374278a51ea84c2 Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:30:54 +0000 Subject: [PATCH 2/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8e42078..cc2eb5d 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ **Screenshots** http://byteben.com/bb/wp-content/uploads/2020/07/Toast-Example.jpg + http://byteben.com/bb/wp-content/uploads/2021/01/Toast-Example-Snooze.jpg http://byteben.com/bb/wp-content/uploads/2020/07/Content-Example.jpg **Description** From bb4dbc56260e7024bdc69f98d98a24646ceb49ec Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:38:25 +0000 Subject: [PATCH 3/8] Update README.md --- README.md | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index cc2eb5d..576f557 100644 --- a/README.md +++ b/README.md @@ -54,14 +54,10 @@ https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notification **Parameters** You should specify either XMLScriptSourceDir **or** XMLOtherSource parameters but not both. If you specify no parameter the script will read the CustomMessage.xml in the script root. -**.PARAMETER XMLScriptDirSource** +**.PARAMETER XMLSource** 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 the same directory as Toast_Notify.ps1 e.g the full UNC path to the XML file. - **.EXAMPLE** Toast_Notify.ps1 -XMLOtherSource "\\\\fileserverhome\xml\CustomMessage.xml" @@ -79,15 +75,22 @@ Toast_Notify.ps1 -Snooze Currently, the images in the XML can only be read from the local file system. This is not an issue if we are deploying the package from MEMCM. PowerShell Window flashes before Toast when deployed in SYSTEM context -**Thanks for the help from** +**Inspiration, Credit and Help** @guyrleech @young_robbo + @mwbengtsson + @ccmexec + @syst_and_deploy **Community** - Seriously check our Martin Bentsson's work on Toasts. It is very comprehensive. https://www.imab.dk/windows-10-toast-notification-script/ - I don't believe in reinventing the wheel, part of me was saying "Use Martin's Script", but I challenged myself to learn how Windows Toasts work from the ground up - so this project was a labour of love for me. I have enjoyed the ride so far. +https://www.imab.dk/windows-10-toast-notification-script/ +http://www.systanddeploy.com/2020/09/display-simple-toast-notification-with.html +https://github.com/Windos/BurntToast +https://wetterssource.com/ondemandtoast +https://msendpointmgr.com/2020/06/29/adding-notifications-to-win32appremedy-with-proactive-remediations/ +https://msendpointmgr.com/2020/08/07/proactive-battery-replacement-with-endpoint-analytics/ - If you have any comments, feedback or would like to contribute - please don't be shy! +If you have any comments, feedback or would like to contribute - please don't be shy! From 9b8e8c09ebcd91b3a51bf529080b7d4119940547 Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:39:19 +0000 Subject: [PATCH 4/8] Update README.md --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 576f557..d22fbea 100644 --- a/README.md +++ b/README.md @@ -60,11 +60,7 @@ Specify the name of the XML file to read. The XML file must exist in the same di **.EXAMPLE** -Toast_Notify.ps1 -XMLOtherSource "\\\\fileserverhome\xml\CustomMessage.xml" - -**.EXAMPLE** - -Toast_Notify.ps1 -XMLSciptDirSource "PhoneSystemProblems.xml" +Toast_Notify.ps1 -XMLSource "PhoneSystemProblems.xml" **.EXAMPLE** From 0941ab2e2fff59878760926a58b7111c7a478013 Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:40:02 +0000 Subject: [PATCH 5/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d22fbea..7dc798b 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ More information and Toast Content guidelines can be found at:- https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-ux-guidance **Parameters** -You should specify either XMLScriptSourceDir **or** XMLOtherSource parameters but not both. If you specify no parameter the script will read the CustomMessage.xml in the script root. +If you specify no parameter for XMLSource the script will read the CustomMessage.xml in the script root. **.PARAMETER XMLSource** From d438036a0e38f9c99729ad43eabbeb71e5780b91 Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:41:25 +0000 Subject: [PATCH 6/8] Update README.md --- README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7dc798b..ef40efa 100644 --- a/README.md +++ b/README.md @@ -73,20 +73,20 @@ PowerShell Window flashes before Toast when deployed in SYSTEM context **Inspiration, Credit and Help** - @guyrleech - @young_robbo - @mwbengtsson - @ccmexec - @syst_and_deploy + @guyrleech + @young_robbo + @mwbengtsson + @ccmexec + @syst_and_deploy **Community** -https://www.imab.dk/windows-10-toast-notification-script/ -http://www.systanddeploy.com/2020/09/display-simple-toast-notification-with.html -https://github.com/Windos/BurntToast -https://wetterssource.com/ondemandtoast -https://msendpointmgr.com/2020/06/29/adding-notifications-to-win32appremedy-with-proactive-remediations/ -https://msendpointmgr.com/2020/08/07/proactive-battery-replacement-with-endpoint-analytics/ +https://www.imab.dk/windows-10-toast-notification-script/ +http://www.systanddeploy.com/2020/09/display-simple-toast-notification-with.html +https://github.com/Windos/BurntToast +https://wetterssource.com/ondemandtoast +https://msendpointmgr.com/2020/06/29/adding-notifications-to-win32appremedy-with-proactive-remediations/ +https://msendpointmgr.com/2020/08/07/proactive-battery-replacement-with-endpoint-analytics/ -If you have any comments, feedback or would like to contribute - please don't be shy! +I welcome comments and feedback. Please fork repo to contribute From 5d6bfaad212cbc7e33a0419c363a955464d184bf Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:42:00 +0000 Subject: [PATCH 7/8] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ef40efa..aab4fac 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,7 @@ PowerShell Window flashes before Toast when deployed in SYSTEM context @mwbengtsson @ccmexec @syst_and_deploy + @PaulWetter **Community** From fdd4c7813f89ac7e2d7bbd41ca2c694f674b06e3 Mon Sep 17 00:00:00 2001 From: Ben Whitmore <44303264+byteben@users.noreply.github.com> Date: Sun, 10 Jan 2021 22:43:51 +0000 Subject: [PATCH 8/8] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aab4fac..d1aeb04 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ -Release -# Project Outline +# Toast Notify **Screenshots** @@ -68,8 +68,8 @@ Toast_Notify.ps1 -Snooze **Known Issues** -Currently, the images in the XML can only be read from the local file system. This is not an issue if we are deploying the package from MEMCM. -PowerShell Window flashes before Toast when deployed in SYSTEM context +-Images in the XML can only be read from the local file system. This is not an issue if we are deploying the package from MEMCM +-PowerShell Window flashes before Toast when deployed in SYSTEM context **Inspiration, Credit and Help**