Microsoft does not guarantee the accuracy of this information.) Microsoft does not guarantee the accuracy of this information.)Ĭonfigure Internet Connection Sharing with PowerShell (Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. How to enable Internet Connection Sharing using command line? (Please Note: Since the web site is not hosted by Microsoft, the link
There are some thread talking about how to enable Windows ICS from PowerShell, you could have a look: There’s no easy way to configure ICS with PowerShell in windows 10, it always need to write scripts to achieve it. Thanks for your posting here. If you are using OS version pre-windows 7, you can use netsh routing commands to set this up, but that feature was removed from windows 7.