From 1b16d64b9f09b7ad9846f66e32dac55fdb3509a9 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Wed, 11 Dec 2019 22:42:19 +0100 Subject: [PATCH] Update task description --- windows-installer/tasks-up.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows-installer/tasks-up.ps1 b/windows-installer/tasks-up.ps1 index 47d2fe3f0..165262487 100644 --- a/windows-installer/tasks-up.ps1 +++ b/windows-installer/tasks-up.ps1 @@ -11,6 +11,7 @@ $down = Join-Path (Get-ScriptDirectory) 'tasks-down.ps1' & $down $taskName = "Certbot Renew & Auto-Update Task" +$taskDescription = "Execute twice a day the 'certbot renew' command, to renew managed certificates if needed, and upgrade Certbot is a new version is available." $actionRenew = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument '-NoProfile -WindowStyle Hidden -Command "certbot renew"' $actionUpgrade = New-ScheduledTaskAction -Execute 'Powershell.exe' -Argument "-NoProfile -WindowStyle Hidden -File ""$InstallDir\auto-update.ps1""" @@ -24,4 +25,4 @@ $triggerPM = New-ScheduledTaskTrigger -Daily -At 12pm -RandomDelay $delay $adminSID = New-Object System.Security.Principal.SecurityIdentifier("S-1-5-32-544") $adminGroupID = $adminSID.Translate([System.Security.Principal.NTAccount]).Value $principal = New-ScheduledTaskPrincipal -GroupId $adminGroupID -RunLevel Highest -Register-ScheduledTask -Action $actionRenew, $actionUpgrade -Trigger $triggerAM, $triggerPM -TaskName $taskName -Description "Execute twice a day the 'certbot renew' command, to renew managed certificates if needed." -Principal $principal +Register-ScheduledTask -Action $actionRenew, $actionUpgrade -Trigger $triggerAM, $triggerPM -TaskName $taskName -Description $taskDescription -Principal $principal