Home > Software engineering >  Build a script to check-uncheck sharing boxes at Ethernet adapter
Build a script to check-uncheck sharing boxes at Ethernet adapter

Time:12-15

We have P2P connection between a host computer and some target, because of stability issues, the connection sometimes dead, and we need to uncheck "allow other network users to connect through this computer's internet connection" with adding "Home networking connection:" as "p2p" and also uncheck-check the "Allow other network users to control or disable the shared Internet connection" to solve the connection issue.

We don't want to try to find the root cause, we decide to build this workarround.

Here are the steps i want to build a PS script to do:

  1. go to the properties of Ethernet adapter: enter image description here

    enter image description here

    enter image description here

  • Related