How to enable "Internet Connection Sharing" using command line?

John Smith picture John Smith · Jul 15, 2013 · Viewed 29.2k times · Source

Is there a way to enabled "Internet Connection Sharing" on Windows 7 (or higher) using command line? Perhaps using "netsh" or a similar command?

Answer

utapyngo picture utapyngo · Oct 16, 2013

I think this question should be on superuser.com. And it is there: https://superuser.com/questions/470319/how-to-enable-internet-connection-sharing-using-command-line.

If you are interested how to do it programmatically – here is the source code at GitHub: https://github.com/utapyngo/icsmanager.