Merge pull request #495 from Romanitho/fix

Roll back notification task as system as it only works on SandBox
pull/501/head
Romain 2023-11-23 15:28:19 +01:00 committed by GitHub
commit aa1f97fd44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 $ToastTemplate.toast.SetAttribute("launch", $OnClickAction) | Out-Null
} }
#if not "Interactive" user, run Winget-AutoUpdate-Notify scheduled task #if running as System, run Winget-AutoUpdate-Notify scheduled task
if ($SessionID -eq 0) { if ($IsSystem) {
#Save XML to File #Save XML to File
$ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\" $ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\"