This commit is contained in:
eddiesoehnel committed 2026-08-12 13:34:45 -06:00
1 parent f5aebfaf77
commit 87cc362513
1541 files changed
+25537 -2

No files matched your search

@@ -0,0 +1,16 @@
param(
[string]$TaskName = "FutureMap-InsightsHub-Daily",
[string]$StartTime = "06:00"
)
$ErrorActionPreference = "Stop"
$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Path
$runner = Join-Path $scriptDirectory "run_daily.ps1"
$taskCommand = 'powershell.exe -NoProfile -ExecutionPolicy Bypass -File "' + $runner + '"'
& schtasks.exe /Create /TN $TaskName /SC DAILY /ST $StartTime /TR $taskCommand /F
if ($LASTEXITCODE -ne 0) {
throw "Unable to create scheduled task $TaskName."
}
& schtasks.exe /Query /TN $TaskName /V /FO LIST