diff --git a/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 b/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 index 326a40f..4f5ec01 100644 --- a/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 +++ b/Sources/Winget-AutoUpdate/functions/Start-NotifTask.ps1 @@ -137,9 +137,6 @@ function Start-NotifTask { #Save XML to File $ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\" - if (!(Test-Path $ToastTemplateLocation)) { - New-Item -ItemType Directory -Force -Path $ToastTemplateLocation - } $ToastTemplate.Save("$ToastTemplateLocation\notif.xml") #Run Notify scheduled task to notify conneted users