Open a command prompt (cmd) as an Administrator and navigate to your download folder. Run one of the following commands to download the installation files into a folder (e.g., C:\VS2022Layout ): Create an offline installation - Visual Studio (Windows)
vs_community.exe --layout c:\vs2022_offline microsoft visual studio 2022 offline installer download
vs_community.exe --layout D:\VS2022_Offline ^ --add Microsoft.VisualStudio.Workload.NetWeb ^ --add Microsoft.VisualStudio.Workload.NativeDesktop ^ --exclude Microsoft.VisualStudio.Component.Git ^ --lang en-US ^ --useLatestInstaller ^ --incremental ^ --bandwidth 2048 ^ --verify Open a command prompt (cmd) as an Administrator