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
# 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) |