PowerShell/Examples/Install-SQLServerManagementStudio184

From Wikiversity
Jump to navigation Jump to search
# This script installs SQL Server Management Studio 18.4.

function Install-SQLServerManagementStudio184 {
    Write-Host "Downloading SQL Server Management Studio 18.4..."
    $Path = $env:TEMP
    $Installer = "SSMS-Setup-ENU.exe"
    $URL = "https://aka.ms/ssmsfullsetup"
    Invoke-WebRequest $URL -OutFile $Path\$Installer

    Write-Host "Installing SQL Server Management Studio 18.4..."
    Start-Process -FilePath $Path\$Installer -Args "/install /quiet" -Verb RunAs -Wait
    Remove-Item $Path\$Installer
}

Install-SQLServerManagementStudio184

See Also[edit]