vs_community.exe --layout D:\VS2022Offline --help
Creating a Microsoft Visual Studio Community 2022 Offline Installer microsoft visual studio community 2022 offline installer
Open an elevated Command Prompt (Run as administrator) and run a command like: vs_community
Run these steps on a machine with internet access to download the necessary installation files. microsoft visual studio community 2022 offline installer