If you want, I can generate a ready-to-run layout command tailored to the exact workloads/languages you need — tell me which workloads or project types you plan to use.
Setting up Visual Studio 2022 on a machine without internet (or just saving bandwidth for a team) requires creating a "local layout." This involves downloading the necessary files on a connected computer and then transferring them to the offline target. Step 1: Download the Bootstrapper
First, download the lightweight installer (bootstrapper) for your specific edition from the Visual Studio Downloads page. Community: vs_community.exe Professional: vs_professional.exe Enterprise: vs_enterprise.exe Step 2: Create the Local Layout
Open a command prompt as an Administrator and navigate to your downloads folder. Use the --layout command to download the full installation files to a specific directory. Example for a full English installation: vs_professional.exe --layout C:\VS2022Offline --lang en-US Use code with caution. Copied to clipboard
Note: A full layout can exceed 40GB. To save space, you can download only specific "workloads" (e.g., just .NET desktop development) by adding the --add parameter followed by the workload ID. Step 3: Install Certificates (Crucial for Offline)
When you move the VS2022Offline folder to the target machine, Windows might block the installation because it can't verify the file signatures online.
On the offline machine, open the Certificates folder within your layout directory. Right-click each .cer file and select Install Certificate.
Choose Local Machine -> Place all certificates in the following store -> Trusted Root Certification Authorities. Step 4: Run the Installation
From the layout folder on the offline machine, run the installer with the --noWeb flag to prevent it from trying to reach Microsoft's servers. Command:
C:\VS2022Offline\vs_professional.exe --noWeb --channelURI "C:\VS2022Offline\channelManifest.json" Use code with caution. Copied to clipboard Quick Reference Table Command Parameter Offline Source --layout Downloads files for offline use. Force Offline --noWeb Prevents the installer from using the internet. Specific Language --lang en-US Limits downloads to a specific language. Include Recommended --includeRecommended Includes optional components for chosen workloads.
Community Perspective: Users on the Visual Studio Developer Community often note that if you are using an LTSC (Long-Term Servicing Channel) version, you should ensure your bootstrapper version matches the intended channel to avoid update errors later.
Create an offline installation - Visual Studio (Windows) - Microsoft Learn
| Workload/Component | ID |
|-------------------|-----|
| .NET Desktop Development | Microsoft.VisualStudio.Workload.ManagedDesktop |
| ASP.NET and Web Development | Microsoft.VisualStudio.Workload.NetWeb |
| C++ Desktop Development | Microsoft.VisualStudio.Workload.NativeDesktop |
| Universal Windows Platform (UWP) | Microsoft.VisualStudio.Workload.Universal |
| Git for Windows | Microsoft.VisualStudio.Component.Git |
| NuGet Package Manager | Microsoft.VisualStudio.Component.NuGet |
Full list: Run
vs_enterprise.exe --layout --list(online machine).
A full, all-workload, all-language layout for Visual Studio 2022 Enterprise can exceed 50 GB. A targeted layout (e.g., C++ + .NET) is roughly 20-30 GB.
vs_enterprise.exe --layout D:\VS2022_Layout ^
--add Microsoft.VisualStudio.Workload.Data ^
--lang en-US
vs_enterprise.exe --layout D:\VS2022_Offline --verify
You cannot create an offline layout without the official bootstrapper. Microsoft provides specific bootstrappers for each edition.
Go to the official Visual Studio 2022 download page and download the bootstrapper for your edition:
Save this file to an empty directory, e.g., C:\VS2022_Offline_Setup.
For the Community Edition:
vs_community.exe --layout C:\VS2022Offline
For the Professional Edition:
vs_professional.exe --layout C:\VS2022Offline
vs_enterprise.exe --layout D:\VS2022_Layout --lang en-US
Replace
vs_enterprise.exewithvs_professional.exeorvs_community.exe