Skip to content

Instantly share code, notes, and snippets.

@hbulens
Created June 16, 2021 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbulens/fed7ca86bc7dc6ff8c12fb4e618b91dd to your computer and use it in GitHub Desktop.
Save hbulens/fed7ca86bc7dc6ff8c12fb4e618b91dd to your computer and use it in GitHub Desktop.
Installs SQL Server Express 2019
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