Use "Pre" / "Post" backup commands to send messages to users ?
Hello,
can you help to create working messages to users before and after backup ?
I currently tried to reference 2 powershell scripts to users but nothing happen, I certainly do something wrong.
I would also like the first "Pre" message to have a 2 min timer...
First Pre message script:
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon
$objNotifyIcon.Icon = [System.Drawing.SystemIcons]::Information
$objNotifyIcon.BalloonTipIcon = "Info"
$objNotifyIcon.BalloonTipText = "Weekly files backup status"
$objNotifyIcon.BalloonTipTitle = "Backup will start in 2 minutes, please plug your backup drive !"
$objNotifyIcon.Visible = $True$objNotifyIcon.ShowBalloonTip(10000)
Start-Sleep 500
2nd Post message script:
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
$objNotifyIcon = New-Object System.Windows.Forms.NotifyIcon
$objNotifyIcon.Icon = [System.Drawing.SystemIcons]::Information
$objNotifyIcon.BalloonTipIcon = "Info"
$objNotifyIcon.BalloonTipText = "Weekly files backup status"
$objNotifyIcon.BalloonTipTitle = "Backup completed, you can unplug your backup drive."
$objNotifyIcon.Visible = $True$objNotifyIcon.ShowBalloonTip(10000)
Start-Sleep 500
Thank you for your tips


- Accedi per poter commentare

Thanks a lots for your help !
I'll dig into Toast notification when I'll find some time, and I disable pre/post notifications for now,
as it break my all backup :)
thanks for the time and investigation !
I'll update here if I suceed with Toast content - UWP applications | Microsoft Docs
- Accedi per poter commentare