I currently have an SCCM 1702 install in an offline environment (offline meaning no internet access).
If we look at the current lifecycle as listed below in Figure 1, 1702 isnt supported and wont be getting updates, and that’s not a good thing. So its time to apply the updates to get it SCCM version 1902 at a minimum.

Figure 1 – accurate as of 17th Aug 2019.
Reference – https://docs.microsoft.com/en-us/sccm/core/servers/manage/current-branch-versions-supported
In order to get the SCCM files in an offline environment, I need to export the Telemetry data to send to Microsoft and in return provide the physical CAB files to import into my offline environment.
The process to do this is:
Pre-Reqs:
Service Connection Point in SCCM is installed and set to Offline, On-demand connection.
Local Administrator permissions.
Read permissions to the SCCM database.
D:\ServiceConnectionTool folder is created.
Steps:
Open a command prompt as an administrator.
Navigate to the <installmedialocation>\SMSSETUP\Tools\ServiceConnectionTool
Run the following command:
ServiceConnectionTool.exe -prepare -usagedatadest D:\ServiceConnectionTool\UsageData.cab
Copy the Service Connection Tool folder (including the DLLs) to a USB drive and the UsageData.cab.
Go to an internet connected machine, and plug in the USB.
Open a command prompt as an administrator and the following:
Serviceconnectiontool.exe -connect -usagedatasrc D:\ServiceConnectionTool\UpdatePacks
Microsoft will then provide the updates for SCCM onto the USB so make sure you have space on the USB.
Connect the USB to the SCCM machine and open command prompt as an administrator and run the following command:
ServiceConnectionTool.exe -import -updatapacksrc D:\ServiceConnectionTool\UpdatePacks
Open the SCCM Console and go to Administration > Updates and Servicing.
You will now see the updates.