Open cmd with administrator priviledge, than execute below command.
Configure SSID and KEY with your own preferred value, SSID is the wifi name, KEY is the password.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Windows\system32>netsh wlan set hostednetwork mode=allow ssid=sameabcd key=12345678
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
C:\Windows\system32>netsh wlan start hostednetwork
The hosted network started.
C:\Windows\system32>netsh wlan stop hostednetwork