If the secondary machine is a smartphone or tablet that supports USB tethering, use the USB cable to establish a network connection between primary and secondary machine. USB tethering typically supported on devices with Cellular Network.
For iOS device, make sure to turn OFF first the Wifi. Connect the iOS device to Windows primary machine via USB lightning cable. Then switch ON the Cellular Data and Personal Hotspot and an option will pop-up and select USB Only.
For Android device just go to settings and find the Tethering & portable hotspot, then connect the USB cable of Android device to Windows primary machine, then enable the USB tethering in Android settings.