How can I configure my wireless to be ad-hoc command-line?
In any version of Windows, how can I put my wireless network card in ad-hoc mode through the command prompt?
I want to do this because I want to hide this from the user (ie. I don't want them to have to do by themselves) I'd rather do this using an API or native windows function, but since I found no static approach in any version of Windows, I figured that the CLI is the next best thing.
netsh wlan del filter permission=denyall networktype=adhoc
removes any filtering for ad-hoc networks.
You can then use
netsh wlan connect ssid="SSID" name="Profile" interface="Interface"
to connect to a network, where you need to fill in the quotation marks.
The syntax and whether parameters are optional are outlined in this TechNet document.