Skip to main content

How to enable Internet connection sharing through script

I have two NIC ports(port1 & port2) in my windows machine. I want to enable internet connection sharing option on port1 through any script (either c# or batch is preferred). I have googled and able to get only how to start the ICS service but not to enable that option. I have given an image for reference.

enter image description here

kcihtrak
  • 11
  • 1
  • 2