https://docs.microsoft.com/en-us/visualstudio/install/command-line-parameter-examples
Note
All commands require administrative elevation, and a User Account Control prompt will be displayed if the process is not started from an elevated prompt.
Note
You can use the ^ character at the end of a command line to concatenate multiple lines into a single command. Alternatively, you can simply place these lines together onto a single row. In PowerShell, the equivalent is the backtick (` ) character.
vs_enterprise.exe –lang en-US –add Microsoft.VisualStudio.Workload.CoreEditor ^
–add Microsoft.VisualStudio.Workload.NativeDesktop ^
–add Microsoft.VisualStudio.Workload.Node ^
–add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 ^
–add Microsoft.VisualStudio.Workload.ManagedDesktop ^
–add Microsoft.VisualStudio.Component.NuGet ^
–add Microsoft.VisualStudio.Component.VC.140 ^
–add Microsoft.VisualStudio.Component.VC.CMake.Project ^
–add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 ^
–add Microsoft.VisualStudio.Component.Windows10SDK.16299.Desktop ^
–add Microsoft.VisualStudio.Component.Windows10SDK ^
–add Microsoft.VisualStudio.Workload.Node ^
–wait –passive –norestart –installPath “C:\VS2017”