Untitled
unknown
plain_text
8 months ago
702 B
1
Indexable
Never
$downloadUrl = "https://github.com/win-acme/win-acme/releases/download/v2.1.25/win-acme.v2.1.25.981.zip" $installFolder = "C:\win-acme" if (-Not (Test-Path -Path $installFolder -PathType Container)) { Invoke-WebRequest -Uri $downloadUrl -OutFile "$env:TEMP\win-acme.zip" New-Item -Path $installFolder -ItemType Directory -Force Expand-Archive -Path "$env:TEMP\win-acme.zip" -DestinationPath $installFolder -Force Remove-Item "$env:TEMP\win-acme.zip" & "$installFolder\wacs.exe" --accepttelemetry --install $env:Path += ";$installFolder" Write-Host "Win-ACME has been installed to $installFolder" } else { Write-Host "Win-ACME is already installed at $installFolder" }
Leave a Comment