Sometimes you need a specific SDK. Use the --includeRecommended and --includeOptional flags.
vs_professional.exe --layout F:\VS2019_Offline --add Microsoft.VisualStudio.Workload.NetWeb --includeRecommended --includeOptional --lang en-US
Navigate to the layout folder and run the generated vs_setup.exe (or simply run the original vs_enterprise.exe located in the folder). The installer will detect the local cache and install without requiring internet access.
Situation: 200 student PCs need Visual Studio 2019 with Python and Unity support.
Solution: One offline layout stored on a high-speed network share. A logon script runs vs_setup.exe --quiet to ensure every lab PC is identical. visual studio 2019 offline installer
Press Win + X, then select "Windows Terminal (Admin)" or "Command Prompt (Admin)." Navigate to the folder where you saved your vs_*.exe file.
You cannot simply download "everything." You must specify which components you need. Visual Studio uses Workload IDs (e.g., Microsoft.VisualStudio.Workload.NetCoreTools). Visual Studio 2019 Offline Installer — Complete Report
Common Workload IDs for Visual Studio 2019:
Microsoft.VisualStudio.Workload.ManagedDesktopMicrosoft.VisualStudio.Workload.NativeDesktopMicrosoft.VisualStudio.Workload.NetWebMicrosoft.VisualStudio.Workload.PythonMicrosoft.VisualStudio.Workload.NodeMicrosoft.VisualStudio.Workload.DataFor a full list, Microsoft maintains a document: "Visual Studio 2019 Workload and Component IDs." Step 1: Open Command Prompt as Administrator Press
vs_community.exe --layout D:\VS2019_Offline --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NativeDesktop --lang en-US
This creates a folder D:\VS2019_Offline containing roughly 12 GB of data.