vs_enterprise.exe --layout C:\VS2022_Offline_Layout This downloads every possible workload, component, SDK, and language pack. It is the "kitchen sink" approach. It is more practical to download only what your team needs. Use the --add parameter to specify workloads (formerly called "components").
vs_enterprise.exe --layout C:\VS2022_Offline_Layout --add Microsoft.VisualStudio.Workload.NativeDesktop --lang en-US Use the --fix parameter if your layout becomes corrupted:
Run the same --layout command again on the machine hosting the layout. The installer will compare the local cache with Microsoft servers and download only the changed packages. visual studio 2022 offline install
Write-Host "Creating offline layout..." -ForegroundColor Green Start-Process -FilePath $Bootstrapper -ArgumentList $Arguments -Wait -NoNewWindow
foreach ($wl in $Workloads) $Arguments += "--add" $Arguments += $wl vs_enterprise
$Arguments = @( "--layout", $LayoutPath, "--lang", "en-US", "--includeRecommended" )
# Create VS2022 Offline Layout $LayoutPath = "D:\VS2022_Offline" $Bootstrapper = "C:\Downloads\vs_enterprise.exe" $Workloads = @( "Microsoft.VisualStudio.Workload.NativeDesktop", "Microsoft.VisualStudio.Workload.ManagedDesktop", "Microsoft.VisualStudio.Workload.NetWeb" ) Use the --add parameter to specify workloads (formerly
vs_enterprise.exe --layout C:\temp\layout --list This will list every available package ID. Now that your C:\VS2022_Offline_Layout folder (or your network share \\server\share\VS2022 ) is ready, you can install on target machines.