Programmatically get the WLAN config of a machine and use netsh to setup new profile
- by Maestro1024
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?