I am sharing my Wifi internet by creating a virtual network through the following commands
netsh wlan set hostednetwork mode=allow ssid=MyWifi key=XXXXXXX netsh wlan start hostednetwork
It works perfectly and creates a new virtual wifi named MyWifi which can be used to connect to the internet.
After some time, this network freezes and can't be used.
When I try to stop it so that I can start it again, I get the following:
C:\Windows\system32>net stop sharedaccess The Internet Connection Sharing (ICS) service is stopping........ The Internet Connection Sharing (ICS) service could not be stopped.
I checked event viewer for something that might be the reason behind this issue but there is nothing. Even killing the process through taskkill command or from Task manager cannot be performed. The only way to resolve this issue is to unplug my wireless adapter (Alfa AWUS036H - Windows 7 Ultimate 64bit) and plug it in again.
I tried to remove all drivers, re-install them again by using Windows update, verified power management settings for my adapter but the issue still exists.
Can you please help me how to troubleshoot this issue and to resolve it.