no log
parent
409eab2de8
commit
e7d3a7a803
|
@ -56,7 +56,7 @@ if ($Logs) {
|
||||||
#Not available yet
|
#Not available yet
|
||||||
$Message = $NotifLocale.local.outputs.output[5].message
|
$Message = $NotifLocale.local.outputs.output[5].message
|
||||||
$MessageType = "warning"
|
$MessageType = "warning"
|
||||||
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
|
Start-NotifTask -Message $Message -MessageType $MessageType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($Help) {
|
elseif ($Help) {
|
||||||
|
@ -68,7 +68,7 @@ else {
|
||||||
if (Test-WAUisRunning) {
|
if (Test-WAUisRunning) {
|
||||||
$Message = $NotifLocale.local.outputs.output[8].message
|
$Message = $NotifLocale.local.outputs.output[8].message
|
||||||
$MessageType = "warning"
|
$MessageType = "warning"
|
||||||
Start-NotifTask -Message $Message -MessageType $MessageType
|
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
#Run scheduled task
|
#Run scheduled task
|
||||||
|
@ -76,7 +76,7 @@ else {
|
||||||
#Starting check - Send notification
|
#Starting check - Send notification
|
||||||
$Message = $NotifLocale.local.outputs.output[6].message
|
$Message = $NotifLocale.local.outputs.output[6].message
|
||||||
$MessageType = "info"
|
$MessageType = "info"
|
||||||
Start-NotifTask -Message $Message -MessageType $MessageType
|
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
|
||||||
#Sleep until the task is done
|
#Sleep until the task is done
|
||||||
While (Test-WAUisRunning) {
|
While (Test-WAUisRunning) {
|
||||||
Start-Sleep 3
|
Start-Sleep 3
|
||||||
|
|
Loading…
Reference in New Issue