Programmatically get the WLAN config of a machine and use netsh to setup new profile
Posted
by Maestro1024
on Server Fault
See other posts from Server Fault
or by Maestro1024
Published on 2010-04-22T20:03:53Z
Indexed on
2010/04/22
20:53 UTC
Read the original article
Hit count: 474
How can I programmatically get the wireless LAN configuration of a machine and use netsh to setup new profile?
I am having trouble getting the netsh command to set the ssid of a new card. I installed the drivers and plugged it in. I see in ipconfig it says the "media is disconnected" (fair enough).
I then send the following command
netsh wlan connect name=profile1 ssid=myNetwork interface="Wireless Network Connection 2"
problem is I get an error "There is no profile "profile1" assigned to the specified interface.
What is a profile for a wireless card? What should I set it to?
How can I get my SSID set and connected for the card?
© Server Fault or respective owner