diff --git a/windows-installer/auto-update.ps1 b/windows-installer/auto-update.ps1 index ce46b07dc..629580f15 100644 --- a/windows-installer/auto-update.ps1 +++ b/windows-installer/auto-update.ps1 @@ -1,8 +1,8 @@ -#Requires -RunAsAdministrator [CmdletBinding()] param() begin {} process { + New-Item "C:\Certbot\log" -ItemType Directory -ErrorAction SilentlyContinue *>$Null Start-Transcript -Path "C:\Certbot\log\auto-update.log" trap { Stop-Transcript } @@ -25,6 +25,7 @@ process { # Get latest remote certbot version try { + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $result = Invoke-RestMethod -Uri https://api.github.com/repos/certbot/certbot/releases/latest $latestVersion = $result.tag_name -replace '^v(\d+\.\d+\.\d+).*$', '$1' $latestVersion = [System.Version]"$latestVersion" diff --git a/windows-installer/tasks-down.ps1 b/windows-installer/tasks-down.ps1 index 17784a5d0..e4ffc57eb 100644 --- a/windows-installer/tasks-down.ps1 +++ b/windows-installer/tasks-down.ps1 @@ -1,5 +1,3 @@ -#Requires -RunAsAdministrator - $tasks = "Certbot Renew & Auto-Update Task", "Certbot Renew Task" foreach ($task in $tasks) { diff --git a/windows-installer/tasks-up.ps1 b/windows-installer/tasks-up.ps1 index 165262487..b669a7cc1 100644 --- a/windows-installer/tasks-up.ps1 +++ b/windows-installer/tasks-up.ps1 @@ -1,5 +1,3 @@ -#Requires -RunAsAdministrator - param( [Parameter(Mandatory=$true, ValueFromPipeline=$true)] [string]