Win10: Multi-Language Toast Notifications

BEFORE YOU BEGIN

In this blog I will be using a Toast Notification script created by Martin Bengtsson.

TOAST NOTIFICATION

In my search for a solution to display notifications to our end users during our new Dynamic Driver and BIOS Update process, I found a blog by Martin Bengtsson.

Martin’s Blog: https://bit.ly/35o4sz4

I will not be deep-diving into the details, so please read Martin’s blog above if you want detailed information about Toast Notifications.

My version is modified to fit our multi-language environment and other needs.

Toast Notification - Danish
Toast Notification - English
Toast Notification - Norwegian

If you can't make it work with "Software Center" as the app for toast notifications, make sure you haven't deleted or hidden the original Software Center shortcut!

Changes I've made:

Added:

  • Multi-Language support

  • Several new text variables in the XML config file

  • Look in WMI for given name if no local AD is available.

  • More detailed logging

Changed:

  • Date formatting

  • All text can now be edited directly in the XML config file

  • Log Path

  • Removed a few script errors showing while running it manually in PowerShell ISE

Deploy it

In my environment we are using ConfigMgr so I want to show how it's done in our environment, but read Martin's documentation to see how it can be deployed through Group Policy.

What I've done in our environment is create a package that contains all the files except the configuration files because I point to them through a UNC path for easier access if I need to change anything.

Explorer - The Files

Then I create a program running PowerShell that executes Show-ToastNotification.ps1, this script will look at the system locale language, and execute the New-ToastNotification.ps1 with the correct language configuration file.

DISM - System Locale Language
ConfigMgr - Program

Command line example:

To implement my modified edition of Martin's Toast Notification script to your environment, download it from my GitHub repo.

Script

Script (Config.xml)

Script (Show-ToastNotification.ps1)

Script (New-ToastNotification.ps1)

A special thanks go to Martin! If you have any questions regarding this topic, feel free to reach out to me. I am most active on Twitter!

Now go out and impress your boss and colleagues!

Last updated

Was this helpful?