Update RestartVeeamMAServiceNightly.ps1

This commit is contained in:
2025-05-22 09:23:10 -05:00
committed by GitHub
parent b837e38560
commit 78efaa54d3

View File

@@ -58,7 +58,7 @@ try {
$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -StartWhenAvailable
try {
Register-ScheduledTask -TaskName "RestartVeeamMAServiceNightly" -Action $action -Trigger $trigger -Principal $principal -Settings $settings -Description "Runs the VeeamMARestart script once the specified time"
Register-ScheduledTask -TaskName "RestartVeeamMAServiceNightly" -Action $action -Trigger $trigger -Principal $principal -Settings $settings -Description "Runs the VeeamMARestart script once at the specified time"
} catch {
$message = $_
Write-error -Message "Failed to create restart scheduler task. $message"