{"id":9470,"date":"2026-03-11T06:02:30","date_gmt":"2026-03-11T06:02:30","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=9470"},"modified":"2026-03-11T06:02:31","modified_gmt":"2026-03-11T06:02:31","slug":"how-to-install-sql-server-data-tools-ssdt-for-microsoft-visual-studio-in-intune","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/how-to-install-sql-server-data-tools-ssdt-for-microsoft-visual-studio-in-intune","title":{"rendered":"How to install SQL Server Data Tools\u00a0(SSDT)\u00a0for Microsoft Visual Studio\u00a0in Intune"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code class=\"\">#Install.ps1\n$vsInstaller = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe\"\n\n$vsPath = Get-ChildItem \"C:\\Program Files\\Microsoft Visual Studio\" -Directory -Recurse -Depth 1 |\n    Where-Object { $_.Name -in @(\"Community\", \"Professional\", \"Enterprise\") } |\n    Sort-Object FullName -Descending |\n    Select-Object -First 1\n\nif (-not $vsPath) {\n    Write-Error \"No Visual Studio installation found\"\n    exit 1\n}\n\nWrite-Output \"Found VS at: $($vsPath.FullName)\"\n\n$process = Start-Process -FilePath $vsInstaller `\n    -ArgumentList \"modify --installPath `\"$($vsPath.FullName)`\" --add Microsoft.VisualStudio.Component.SQL.SSDT --quiet --norestart\" `\n    -Wait `\n    -PassThru\n\nexit $process.ExitCode<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#UnInstall.ps1\n$vsInstaller = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe\"\n\n$vsPath = Get-ChildItem \"C:\\Program Files\\Microsoft Visual Studio\" -Directory -Recurse -Depth 1 |\n    Where-Object { $_.Name -in @(\"Community\", \"Professional\", \"Enterprise\") } |\n    Sort-Object FullName -Descending |\n    Select-Object -First 1\n\nif (-not $vsPath) {\n    Write-Error \"No Visual Studio installation found\"\n    exit 1\n}\n\nWrite-Output \"Found VS at: $($vsPath.FullName)\"\n\n$process = Start-Process -FilePath $vsInstaller `\n    -ArgumentList \"modify --installPath `\"$($vsPath.FullName)`\" --remove Microsoft.VisualStudio.Component.SQL.SSDT --quiet --norestart\" `\n    -Wait `\n    -PassThru\n\nexit $process.ExitCode<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#Detection\n$basePath = \"C:\\Program Files\\Microsoft Visual Studio\"\n\n$file = Get-ChildItem $basePath -Recurse -Depth 5 -Filter \"Microsoft.Data.Tools.Schema.Sql.dll\" -ErrorAction SilentlyContinue\n\nif ($file) {\n    Write-Output \"Installed\"\n    exit 0\n} else {\n    exit 1\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9470","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=9470"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9470\/revisions"}],"predecessor-version":[{"id":9471,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/9470\/revisions\/9471"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=9470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=9470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=9470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}