Index

list saved profiles
netsh wlan show networks
netsh wlan show profile
netsh wlan show profiles interface="Wireless Network Connection"
netsh wlan show all
connect to saved profile
netsh wlan connect name=[profile]
You'll need to create a profile under "Network and Sharing Center"Alternatively, you can use the "interface" parameter to show the list of profiles for a particular wireless adapter:
netsh wlan show profiles interface="Wireless_Interface_Neme"
here are the commands to turn the Windows 7 (or Server 2008 R2) into an Access Point sharing its existing wireless connection out to others:
netsh wlan set hostednetwork mode=allow ssid=SomeSSID key=passphrase
The hosted network is now created but it is not yet started. To start it, issue the command:
netsh wlan start hostednetwork