Describe the bug
When attempting to run the win_connection_share.ps1 -EnableInternetConnectionSharing command, I get the following error:
C:\win_connection_share.ps1 : An event was unable to invoke any of the subscribers (Exception
from HRESULT: 0x80040201)
At line:1 char:1
+ .\win_connection_share -EnableInternetConnectionSharing
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [win_connection_share.ps1], COMException
+ FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,win_connection_share.ps1
To Reproduce
Steps to reproduce the behavior:
10.0.0.2 to ensure connectivity.win_connection_share.ps1 from script folder within repowin_connection_share.ps1 -EnableInternetConnectionSharing.Extra step: I've rebooted my computer to see if that would change any outcome.
Expected behavior
To enable internet connection sharing from my Windows host to my Pwnagotchi.
Screenshots

Environment (please complete the following information):
I've found that Windows ICS (Internet Connection Sharing) was the culprit here. I restarted the ICS service by following these steps:
Administrative ToolsServicesInternet Connection Sharing.RestartAfter these steps, run the script again with the -EnableInternetConnectionSharing flag and you should see that ICS is enabled.
I tried the issues suggested here, did not work. In the end, I found out that if you go to "network connections", rightclick on the connection (in my case the wireless one), Settings, Sharing, and then select the RNDIS network, then it will work.
I found out that if you go to "network connections", rightclick on the connection (in my case the wireless one), Settings, Sharing, and then select the RNDIS network, then it will work. <
you save my day , thx alot.
Most helpful comment
I tried the issues suggested here, did not work. In the end, I found out that if you go to "network connections", rightclick on the connection (in my case the wireless one), Settings, Sharing, and then select the RNDIS network, then it will work.