Then reference it:
vs_enterprise.exe --layout D:\VS2022_Offline It will only download new or changed components. Smart, right? 1. Space management A full VS2022 Enterprise layout with all workloads can exceed 50GB . Use --useLatestInstaller to ensure your bootstrapper stays updated. 2. Certificate issues on air-gapped PCs Sometimes offline Windows machines lack the necessary root certificates. Export the Microsoft Root Certificate from an online machine and install it on the offline PC before running the installer. 3. Using a response file For complex, repeatable installations, create a vs2022.config file: microsoft visual studio 2022 offline installer
On the target machine (no internet needed), simply run: Then reference it: vs_enterprise
| Workload | ID | | :--- | :--- | | .NET desktop development | Microsoft.VisualStudio.Workload.ManagedDesktop | | Desktop development with C++ | Microsoft.VisualStudio.Workload.NativeDesktop | | Universal Windows Platform | Microsoft.VisualStudio.Workload.Universal | | Game development with Unity | Microsoft.VisualStudio.Workload.Unity | | ASP.NET and web development | Microsoft.VisualStudio.Workload.NetWeb | | Data storage and processing | Microsoft.VisualStudio.Workload.Data | | Office/SharePoint dev | Microsoft.VisualStudio.Workload.Office | Space management A full VS2022 Enterprise layout with
vs_enterprise.exe --layout D:\VS2022_Offline --config vs2022.config Need just the compilers and MSBuild for a CI/CD pipeline? Use vs_buildtools.exe with the same --layout command. Final Thoughts The offline installer transforms Visual Studio 2022 from a bandwidth-hungry web download into a reliable, portable asset. Whether you are securing a SCADA network, standardizing a computer lab, or just tired of waiting for downloads, the --layout command is your best friend.
vs_enterprise.exe --layout <destination_folder> --add <workload_id> --lang en-US Let’s create an offline folder with .NET desktop development, C++ desktop, and Universal Windows Platform support.
D:\VS2022_Offline\vs_enterprise.exe --quiet --wait --norestart Over time, Microsoft releases updates. To keep your offline folder fresh without redownloading everything, run the same layout command again: