Untitled
unknown
plain_text
2 years ago
702 B
8
Indexable
$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"
}Editor is loading...
Leave a Comment