Programtically get the Wireless lan config of a machine and use netsh to setup new profile
- by Maestro1024
Programtically get the Wireless lan config 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.