Roll Back notification task as system as it only works on SandBox

pull/495/head
romanitho 2023-11-23 15:17:17 +01:00
parent 79ff32b656
commit ab73693a2b
1 changed files with 2 additions and 2 deletions

View File

@ -132,8 +132,8 @@ function Start-NotifTask {
$ToastTemplate.toast.SetAttribute("launch", $OnClickAction) | Out-Null
}
#if not "Interactive" user, run Winget-AutoUpdate-Notify scheduled task
if ($SessionID -eq 0) {
#if running as System, run Winget-AutoUpdate-Notify scheduled task
if ($IsSystem) {
#Save XML to File
$ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\"