How can I configure my wireless to be ad-hoc command-line?
7,242
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.
Related videos on Youtube
Author by
Unknown
Updated on September 18, 2022Comments
-
Unknown almost 2 years
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.
-
Unknown over 12 yearsThis will connect to an already existing network? Can it also be used to create/initialize a new ad-hoc network?
-
Tamara Wijsman over 12 years@Unknown: I don't know of another way. Although you could try to figure out with Process Monitor what registry values are accessed to create such a profile and then replicate it with the
reg
command or by producing a.reg
file and importing it.