Use the --add parameter with workload IDs. Example for .NET Desktop and Web development:

Use --keepDownloadedPayloads to avoid double storage. Alternatively, move the layout to an external drive or network share.

Creating a "Visual Studio 2022 offline installer ISO" is a common requirement for developers working in air-gapped environments or restricted networks. While Microsoft no longer provides a direct ISO download—primarily because the full installer size can exceed 45 GB—you can easily build your own "local layout" which functions as a portable offline installer.

Once the download completes, copy the C:\VS2022Offline folder to the target offline machine.