0 0

Silent Install Azure SQL Drivers

SQL ODBC Driver:

$ProgressPreference = "SilentlyContinue"
$Link = "https://go.microsoft.com/fwlink/?linkid=2280794"
$Path = "C:\Users\Public\Downloads"
$File = "msodbcsql.msi"
Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $Path\$File /qn ALLUSERS=1 IACCEPTMSODBCSQLLICENSETERMS=YES /L*v $Path\install.log" -Wait

SQL Native Client:
$ProgressPreference = "SilentlyContinue"
$Link = "https://download.microsoft.com/download/B/E/D/BED73AAC-3C8A-43F5-AF4F-EB4FEA6C8F3A/ENU/x64/sqlncli.msi"
$Path = "C:\Users\Public\Downloads"
$File = "sqlncli.msi"
Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing
Start-Process -FilePath "msiexec.exe" -ArgumentList "/i $Path\$File /qn ALLUSERS=1 IACCEPTMSODBCSQLLICENSETERMS=YES /L*v $Path\install.log" -Wait