netsh wlan start hostednetwork
netsh wlan show hostednetwork
https://www.youtube.com/watch?v=0XP7GpcownQ
Method 1: The issue seems to occur on computers that have Windows Firewall disabled. Windows Firewall service has to be running even if you’re using another antivirus/firewall program on your computer.
I recommend you to check for the status of the “Windows Firewall” service and set it to “Automatic”.
Follow these steps:
- Press Windows + R keys and type services.msc, and click OK.
- Locate Windows Firewall, right-click on it and click Properties.
- In the General tab, select Automatic under the Startup type.
- Click Start to start the service.
- Click Apply and OK.
- Restart the computer and check if the issue gets fixed.
If the issue still persists then, try the below,
Method 2: You may try to check all the services that run Internet Connection Sharing (ICS) and check.
- Press Windows + R keys and type services.msc, and click OK.
- To enable a service, find it in the right pane and double-click its entry.
- Be sure its Startup type is set to Automatic and click OK.
All the following services must be thus configured in order to use ICS:
- Application Layer Gateway Service
- Network Connections
- Network Location Awareness (NLA)
- Plug And Play
- Remote Access Auto Connection Manager
- Remote Access Connection Manager
- Remote Procedure Call (RPC)
- Telephony
After verifying and/or configuring Automatic startup for each of these services, close the Services window and restart the computer before attempting again to enable ICS.
http://answers.microsoft.com/en-us/windows/forum/windows_10-networking/wifi-hotspot-on-windows-10-with-error-an-error/b80e6222-bc1c-4d13-8619-ba3a4d4b3757?auth=1
But
in my case,
it didn't work
Error still occurred
" an error occurred while internet connection sharing was being enabled"
i think mac is better than windows. and windows should try to get better on UX.