vat-software/scripts/task_fix.ps1
2023-03-28 11:30:59 +02:00

8 lines
264 B
PowerShell

Unregister-ScheduledTask -TaskName "git pull" -Confirm:$False
$path = [Environment]::GetFolderPath("MyDocuments")
$path2 = "VAT-Software"
$fullPath = Join-Path $path $path2
schtasks /create /sc minute /mo 15 /tn "Git pull" /tr "PowerShell $fullPath'\cron.ps1'"