vs_community.exe --layout C:\VS2022_Layout --lang en-US --all

Open a and navigate to your download folder. Run the following command to download the packages into a specific directory:

D:\VS2022_Offline\vs_community.exe --quiet --wait --norestart