Загрузка данных


<#
Скрипт выводит родное всплывающее уведомление Windows 10 над часами
#>
$Sign = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]
$Xml = New-Object Windows.Data.Xml.Dom.XmlDocument
$Template = "<toast><visual><binding template='ToastGeneric'><text>⚠️ ВНИМАНИЕ! РАБОЧИЙ СТОЛ ОЧИЩАЕТСЯ</text><text>Файлы после перезагрузки удаляются. Сохраняйте работы на СЕТЕВОЙ ДИСК!</text></binding></visual></toast>"
$Xml.LoadXml($Template)
$Toast = New-Object Windows.UI.Notifications.ToastNotification $Xml
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier("Windows").Show($Toast)