Thanks for this solution. Very nice. The best part is not having to change the script to create a different message! Has been great for win10 upgrades to notify users of low disk space and vpn connection.
Question - I'm trying to use this in Winpe 64bit v14393 for standalone media expired/outdated notification. It's giving me the error "This version of serviceui.exe is not compatible with the version of Windows you're running..". Have you tried to use this in winpe? Any suggestion on how to get passed this? I am not using the "disable 64bit file system redirection" option in the task.