Dateien nach "/" hochladen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user