First you open a elevated command prompt and type something like this:
netsh wlan set hostednetwork mode=allow
netsh wlan set hostednetwork ssid=MySSID key=MyPassword KeyUsage=Persistent
netsh wlan start hostednetwork
* The password must be longer than 8 characters
Now what you have to do is enable "Internet connection sharing"
Press WINDOWS KEY + R to open the run command, type ncpa.cpl and press ENTER
Go to the connection that gets the internet, right-click, Proprieties, Sharing, tick the option that says: "Allow other users from the network to connect through this computers internet"
On the option: "Domestic network connection:", Select the virtual hotspot that you just created and click on Ok.
To stop the virtual hotspot use these commands:
netsh wlan set hostednetwork mode=disallow
netsh wlan stop hostednetwork
* The network adapter on which you run the virtual hotspot has to be compatible with: "Virtual Wi-Fi"
Here is a video that I created about how to create a virtual hotspot it is in Portuguese (Brazil) but maybe it can still help
Good luck