In Windows 7 creating an Ad Hoc network connection was simple and is done through the Network and Sharing center through a wizard driven process. Unfortunately in Windows 8, there is no option to create an Ad Hoc Network connection through the Windows 8 Network and Sharing Center. But this doesn’t mean that in Windows 8 it’s not possible. you can create this using the netsh command in Windows 8. Netsh stands for Network Shell and is a command used to configure network related settings in Windows.
Lets look at how to create an Ad Hoc Wireless Network
Open up Command prompt in Admin Mode (press Windows Key + X and select Command Prompt – Admin)
First, we need to make sure that our computers Wi-Fi network adapter has the ability to virtualize itself and support the creation of Ad Hoc Wireless Network Creation.
To verify, type netsh wlan show drivers and make sure the Hosted network supported: Yes
Next step is to enable/allow the creation of an Ad Hoc network and the configurations such as the SSID and password
type netsh wlan set hostednetwork mode=allow ssid=<network name> key=<passphrase>
below image shows that I have enabled an Ad Hoc connection with a SSID of Akfash and the password is MVP@123456
now that we have enabled the hosted network mode, next step is to start connection
type netsh wlan start hostednetwork
Ad Hoc connection successfully created and started with a SSID (Akfash) and password (MVP@123456)
once you are done using and need to stop the Ad Hoc connection run the following command
netsh wlan stop hostednetwork