Sometimes you have a PC connected to network, but you need to create a WiFi HotSpot from it. This is an less known tip I guess so I wanted to publish it.
First, we need to open a Windows Command Line under Administrator account.
Then we need to type in there this command:
netsh wlan set hostednetwork mode=allow ssid=NetworkName
Where NetworkName is the name of your new WIFI network and password is obvious. You need to type this as one command seperated by spaces.
Then we need to type another command:
netsh wlan start hostednetwork
Now we have started our new WiFi network. Only remaining step is to allow Internet Connection Sharing between the new network and your PC network connection.
To do this, you need to open Control Panes go to Network and Sharing Center, Click to Change Adapter Settings. Now, look for and Adapter, with Microsoft Virtual Wifi Miniport in the third line. Remember its name. On the Picture its Wi-Fi 3.
Then you need to click with Right mouse button to your PC Network Connection, on the Picture its Wired Enternet Connection and select Properties.
On the Properties, go to Sharing, enable Allow other network users to connect throught this computer’s Internet connection. And finally choose the Network which you remembered in step above, which is your new WiFi HotSpot Network.
After clicking OK, you should have new network with specified password available.
This tip works in Windows 7/8.