Skip to content

Instantly share code, notes, and snippets.

@SalimGangji
SalimGangji / ssms_install.ps1
Last active December 23, 2019 23:25 — forked from justinsoliz/ssms_install.ps1
Powershell - Install Sql Server Management Studio
# 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)