Skip to content

Instantly share code, notes, and snippets.

@SalimGangji
SalimGangji / ssms_install.ps1
Last active Dec 23, 2019 — forked from justinsoliz/ssms_install.ps1
Powershell - Install Sql Server Management Studio
View ssms_install.ps1
# Set file and folder path for SSMS installer .exe
$folderpath="c:\windows\temp"
$filepath="$folderpath\SSMS-Setup-ENU.exe"
#If SSMS not present, download
if (!(Test-Path $filepath)){
write-host "Downloading SQL Server SSMS..."
$URL = "https://aka.ms/ssmsfullsetup"
$clnt = New-Object System.Net.WebClient
$clnt.DownloadFile($url,$filepath)
You can’t perform that action at this time.