Update Start-NotifTask.ps1

pull/339/head^2
Romain 2023-04-25 00:43:04 +02:00 committed by GitHub
parent 74856cdecc
commit 59bb6055aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ function Start-NotifTask {
[Switch]$UserRun = $false [Switch]$UserRun = $false
) )
if (($WAUConfig.WAU_NotificationLevel -eq "Full") -or ($WAUConfig.WAU_NotificationLevel -eq "SuccessOnly" -and $MessageType -eq "Success") -or (!$IsSystem)) { if (($WAUConfig.WAU_NotificationLevel -eq "Full") -or ($WAUConfig.WAU_NotificationLevel -eq "SuccessOnly" -and $MessageType -eq "Success") -or ($UserRun)) {
# XML Toast template creation # XML Toast template creation
[xml]$ToastTemplate = New-Object system.Xml.XmlDocument [xml]$ToastTemplate = New-Object system.Xml.XmlDocument