Create WiFi Hotspot using Command Prompt

The following are the steps to create a WiFi hotspot using Command Line:

a) Open an Administrator Command Prompt.
b) Type netsh and press enter.
c) Type wlan and press enter.
d) Create a hosted network by typing the following command:

set hostednetwork mode=allow ssid=NetworkName key=password

e) Type the following command to start the created hotspot:

start hostednetwork

f) Anytime when you're done, type the following to stop it:

stop hostednetwork