I am new to command prompt and I am learning it for about some weeks, I wanted to test myself by connecting to a newly bought wifi router, but in doing so I am facing some problems.
As far as I know to connect to a wifi network the command used is
netsh wlan connect name='profile' ssid='ssid' interface='interface'
But the problem i face is regarding the name(Profile). when I type the command
netsh wlan show profiles
The cmd shows me the profiles of the networks I have connected to before, but we require the name(profile) part to connect to a wifi network, so how can I connect to a network I have never connected before?
When I type the command
netsh wlan show networks mode=bssid
I can see a list of available networks and their BSSIDs also I can see my network's name there, but how do I connect to it? Also is there any way to connect to a network using the bssid or ssid of it. Please help me.
Screenshots of my progress so far.
(The second pic above shows a failed attempt to connect with the ssid)
(The one encircled is our concern)