Do you have a good idea for sending a message to users of client PCs?
The following commands are distributed by the script distribution function of Configuration manager.
I can't get the expected behavior.
When executed on the client PC, toast notification works correctly.
--PowerShell--
$AppId = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershell.exe";
$template=
[Windows.UI.Notifications.ToastNotificationManager,Windows.UI.Notifications, ContentType = WindowsRuntime]::GetTemplateContent(
[Windows.UI.Notifications.ToastTemplateType, Windows.UI.Notifications, ContentType = WindowsRuntime]::ToastText01);
$msg="Test Message";
$template.GetElementsByTagName("text").Item(0).InnerText=$msg;
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($AppId).Show($template);