Dateien nach "/" hochladen
This commit is contained in:
@@ -409,9 +409,11 @@ function Ensure-ScheduledTask {
|
|||||||
|
|
||||||
$psExe = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe"
|
$psExe = "$env:SystemRoot\System32\WindowsPowerShell\v1.0\powershell.exe"
|
||||||
|
|
||||||
|
$configPath = Join-Path $TargetPath $ConfigFileName
|
||||||
|
|
||||||
$action = New-ScheduledTaskAction `
|
$action = New-ScheduledTaskAction `
|
||||||
-Execute $psExe `
|
-Execute $psExe `
|
||||||
-Argument "-NoLogo -NoProfile -ExecutionPolicy Bypass -File `"$scriptPath`"" `
|
-Argument "-NoLogo -NoProfile -ExecutionPolicy Bypass -File `"$scriptPath`" -ConfigPath `"$configPath`"" `
|
||||||
-WorkingDirectory $TargetPath
|
-WorkingDirectory $TargetPath
|
||||||
|
|
||||||
$trigger = New-ScheduledTaskTrigger -AtStartup
|
$trigger = New-ScheduledTaskTrigger -AtStartup
|
||||||
|
|||||||
Reference in New Issue
Block a user