Maika San Pedro
asked on
cmd: can't connect using netsh command
'm not really a tech savvy person and I really don't understand what I am doing. I'm just trying to connect to another secured network through cmd.
I've read on other tutorials to do this
netsh wlan connect ssid=YOURSSID name=PROFILENAME interface="WIRELESS NETWORK CONNECTION"
but I'm very much confused.. SSID and Name should be the same, right?
I'm getting a result like this
"There is no profile "WifiName" assign to the specific interface"
and sometimes this
"One or more parameters for the command are not correct or missing."
I'm really confused now. Please help. Can you explain it to me with a layman's word? :( I'm not really good with tech jargons. Thank you!
I've read on other tutorials to do this
netsh wlan connect ssid=YOURSSID name=PROFILENAME interface="WIRELESS NETWORK CONNECTION"
but I'm very much confused.. SSID and Name should be the same, right?
I'm getting a result like this
"There is no profile "WifiName" assign to the specific interface"
and sometimes this
"One or more parameters for the command are not correct or missing."
I'm really confused now. Please help. Can you explain it to me with a layman's word? :( I'm not really good with tech jargons. Thank you!
ASKER
do I add profile using cmd too?
I assume this is the correct step to follow?
should I put "netsh" command at the beginning too?
I assume this is the correct step to follow?
add profile filename= PathAndFileName [[interface=]InterfaceName] [[user=]{all|current}]
should I put "netsh" command at the beginning too?
Open an admin command prompt and type
netsh wlan show profiles This will display all profiles
Is the profile you are trying to connect to displayed?
netsh wlan show profiles This will display all profiles
Is the profile you are trying to connect to displayed?
ASKER
Hi John Hurst,
Thanks for the tip. I have done that too just to check available profiles. Yes, the network I'm trying to connect with is NOT shown on the profile list. I haven't been connected to that wifi before that's why it's not on the list, that's what I understood, is that correct?
Thanks for the tip. I have done that too just to check available profiles. Yes, the network I'm trying to connect with is NOT shown on the profile list. I haven't been connected to that wifi before that's why it's not on the list, that's what I understood, is that correct?
"Connect" connects an existing profile and you do not have one.
Use NETSH WLAN ADD to add a connection profile.
Open cmd.exe with Run as Administrator
Then NETSH WLAN ADD /? to see how to use it
NETSH WLAN CONNECT /? to see how to use it
NETSH WLAN /? to see the available commands.
Use NETSH WLAN ADD to add a connection profile.
Open cmd.exe with Run as Administrator
Then NETSH WLAN ADD /? to see how to use it
NETSH WLAN CONNECT /? to see how to use it
NETSH WLAN /? to see the available commands.
So to give you an example....
ments
Additionally, this also specifies which interface to add this to. However, if you leave the interface parameter out, Windows will automatically add it to one for you.
If you ran the second command and the first one had never been run, you'd get an error like you've been getting. However, if the first command had already been run, then you'd be good for running the second at any point in time in the future (unless you delete or rename the profile)
netsh add profile filename=C:\Users\WirelessUser\Documents\HomeWifi.xml interface="Wireless Network Connection"
This command would add a profile named HomeWifi in the folder C:\Users\WirelessUser\DocuAdditionally, this also specifies which interface to add this to. However, if you leave the interface parameter out, Windows will automatically add it to one for you.
netsh wlan connect ssid=MaryHadALittleLamb name=HomeWifi interface="Wireless Network Connection"
This command will connect to the network called MaryHadALittleLamb using the profile called HomeWifi and using the wireless interface called Wireless Network Connection. Unlike the first command, you are required to specify an interface to use.If you ran the second command and the first one had never been run, you'd get an error like you've been getting. However, if the first command had already been run, then you'd be good for running the second at any point in time in the future (unless you delete or rename the profile)
ASKER
Hi guys. Thank you for all the responses. However, I'm still getting the same error. I don't know what I'm doing wrong.. I made sure I do the "add profile" thing first.. please see the image I added above.. that's the screenshot.
The network I'm trying to connect with is a secured network and I do not know the password of it, is that the reason why?
Also, earlier today I tried something from the "Network Sharing Center" on my computer.. Please see image below.
After I tried doing this.. I went back to cmd and do the
netsh wlan show profile .... and the profile I created is already there.. .. when I did
netsh wlan show profile WIFINAME key=clear it gave me the result shown in the image below.. it even has the password I created for that profile
I'm terrible at this.. But thank you so much for your patience.. If you could help me, I can allow you to remote access my laptop to do this thing.. it's killing me already. lol
The problem was in the command to connect, you put a "\" into the profile name.
You only need to run the connect command at this point since you already created the profile.
You only need to run the connect command at this point since you already created the profile.
It is much easier to enter the parameters in the setup GUI interface than using NETSH commands. Just use that because it is easier to see what you are doing.
If the profile exists, you need NETSH WLAN SET to change the configuration parameters.
If the profile exists, you need NETSH WLAN SET to change the configuration parameters.
ASKER
Whether your card connects or not has nothing to do with NETSH or using the GUI. Do the following
Open cmd.exe with Run as Administrator
Then netsh int ip reset c:\resetlog.txt
Also, ipconfig /flushdns followed by net stop dnscache followed by net start dnscache
Then restart the computer
See if that works.
If not, get the driver for the wireless card and reinstall the driver
Open cmd.exe with Run as Administrator
Then netsh int ip reset c:\resetlog.txt
Also, ipconfig /flushdns followed by net stop dnscache followed by net start dnscache
Then restart the computer
See if that works.
If not, get the driver for the wireless card and reinstall the driver
Chances are (and it makes sense), that your network is secure. Therefore, you need to set the parameters for the security.
Use this to specifiy the type of security (in this example I'm doing WPA2 Personal):
Use this to specify the type of encryption utilized (WPA2 uses AES by default, so that is what I'm using in this example):
Use this to specify the key (we shouldn't know what your network key is, so you'd have to put the correct one in):
In case you're curious, you can actually combine these together if you wanted to...
Once you've completed setting these parameters, then you should be able to connect.
Use this to specifiy the type of security (in this example I'm doing WPA2 Personal):
netsh wlan set profileparameter name=PLDTHOMEDSLeduardo authentication=WPA2PSK
Use this to specify the type of encryption utilized (WPA2 uses AES by default, so that is what I'm using in this example):
netsh wlan set profileparameter name=PLDTHOMEDSLeduardo encryption=AES
Use this to specify the key (we shouldn't know what your network key is, so you'd have to put the correct one in):
netsh wlan set profileparameter name=PLDTHOMEDSLeduardo keyMaterial=yournetworkkey
In case you're curious, you can actually combine these together if you wanted to...
netsh wlan set profileparameter name=PLDTHOMEDSLeduardo authentication=WPA2PSK encryption=AES keyMaterial=yournetworkkey
Once you've completed setting these parameters, then you should be able to connect.
ASKER
I was able to update the security key but that didn't make me connect still. :(
I would like to clarify that this network I'm trying to connect to is NOT MY INTERNET.. it's my uncle's internet.. HE DOESN'T WANT TO SHARE THE WIFI.. but I want to gain access to it..
that's what I'm trying to do ..
I would like to clarify that this network I'm trying to connect to is NOT MY INTERNET.. it's my uncle's internet.. HE DOESN'T WANT TO SHARE THE WIFI.. but I want to gain access to it..
that's what I'm trying to do ..
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here is a link that should help a little:
https://technet.microsoft.