first commit

This commit is contained in:
2025-12-11 06:26:12 -08:00
commit 4662fe2d3b
2327 changed files with 114173 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
title:: Powershell - create tasks for FFS
updated:: 2021-03-08 21:09:39+00:00
created:: 2021-03-08 21:09:23+00:00
```powershell
Get-ChildItem -Path c:\\Users\\sstent\\Documents\\*.ffs_batch | foreach {
echo $_.FullName
$DelayTimeSpan = New-TimeSpan -Hours 2
$A = New-ScheduledTaskAction -Execute "C:\\Program Files\\FreeFileSync\\FreeFileSync.exe" -Argument $_.FullName
$T = New-ScheduledTaskTrigger -Daily -At 7am -RandomDelay $DelayTimeSpan
$P = New-ScheduledTaskPrincipal "sstent" -RunLevel Limited -LogonType Interactive
$S = New-ScheduledTaskSettingsSet 
$D = New-ScheduledTask -Action $A -Principal $P -Trigger $T -Settings $S
Register-ScheduledTask $_.Name -InputObject $D -TaskPath "\\sync\\"
}
```