From 45e55c51137d731cd11df78aaf20cb4c69ae514e Mon Sep 17 00:00:00 2001 From: "manuel.maier" Date: Fri, 14 Aug 2026 00:03:27 +0200 Subject: [PATCH] Dateien nach "/" hochladen --- Setup-SMTPGraphRelay.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Setup-SMTPGraphRelay.ps1 b/Setup-SMTPGraphRelay.ps1 index 0246f5a..d06cead 100644 --- a/Setup-SMTPGraphRelay.ps1 +++ b/Setup-SMTPGraphRelay.ps1 @@ -409,9 +409,11 @@ function Ensure-ScheduledTask { $psExe = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe" + $configPath = Join-Path $TargetPath $ConfigFileName + $action = New-ScheduledTaskAction ` -Execute $psExe ` - -Argument "-NoLogo -NoProfile -ExecutionPolicy Bypass -File `"$scriptPath`"" ` + -Argument "-NoLogo -NoProfile -ExecutionPolicy Bypass -File `"$scriptPath`" -ConfigPath `"$configPath`"" ` -WorkingDirectory $TargetPath $trigger = New-ScheduledTaskTrigger -AtStartup