The scenario, you need to install Visual Studio in a secure offline environment (no internet access). So what do you do. Follow the following instructions:
Download the Visual Studio 2017 executable from the Microsoft website:

Pre-Requisites:
- .NET 4.6 Framework installed.

Open an elevated command prompt, and navigate to vs_enterprise2017.exe
For .NET web and .NET desktop development:
vs_enterprise2017.exe --layout d:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.NetWeb --add Component.GitHub.VisualStudio --includeOptional --lang en-US
For .NET desktop and Office development:
vs_enterprise2017.exe --layout d:\vslayout --add Microsoft.VisualStudio.Workload.ManagedDesktop --add Microsoft.VisualStudio.Workload.Office --includeOptional --lang en-US
For C++ desktop development:
vs_enterprise.exe --layout c:\vslayout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US
For all features, and English only (note – this will take a long time to complete):
vs_enterprise.exe --layout c:\vslayout --lang en-US

Download of the files will begin and store in C:\vslayout


Copy the VSLayout folder to the disconnected server.
Open the VSLayout folder, and run vs_setup.exe.



Change the location from C:\ to D:\ at the bottom of the pop-up.

Change the Visual Studio IDE and Shared components, tools and SDKs.

Select the relevant workloads and click Install.

Once installed, you will see the finished product.
