Created
June 16, 2021 06:59
-
-
Save hbulens/fed7ca86bc7dc6ff8c12fb4e618b91dd to your computer and use it in GitHub Desktop.
Installs SQL Server Express 2019
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Install-SQLServerExpress2019 { | |
Write-Host "Downloading SQL Server Express 2019..." | |
$Path = $env:TEMP | |
$Installer = "SQL2019-SSEI-Expr.exe" | |
$URL = "https://go.microsoft.com/fwlink/?linkid=866658" | |
Invoke-WebRequest $URL -OutFile $Path\$Installer | |
Write-Host "Installing SQL Server Express..." | |
Start-Process -FilePath $Path\$Installer -Args "/ACTION=INSTALL /IACCEPTSQLSERVERLICENSETERMS /QUIET" -Verb RunAs -Wait | |
Remove-Item $Path\$Installer | |
} | |
Install-SQLServerExpress2019 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment