vs_community.exe --layout C:\VSLayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended --lang en-US
certmgr.exe -add manifestRootCertificate.cer -c -s -r localMachine root visual studio community 2022 offline installer
For example, a basic command to create a minimal layout might look like this: vs_community.exe --layout c:\VS2022Layout vs_community