Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When connecting to a Wireless network in a fresh Windows 7 installation you are treated to the following:

Set Network Location

Is there a way to tell Windows not to ever display this notification and treat all networks as public by default. perhaps in local Group Policy or Local Security policy. I've had a look but can't see anything.

Another way round the problem would be to specify the type of network when adding it from a script. We currently use a .bat file containing the following:

netsh wlan add profile filename="filename.xml"
netsh wlan connect wirelessname

If there is a way to specify the type of network location in Netsh - I don't think there is - then this would solve the problem also.

Edit: I'm looking to avoid Any user interaction in this. I want something that can be set before syspreping or run as a command on first logon.

share|improve this question
Any reason for the downvote on this? – Joe Taylor Feb 1 '12 at 12:39
up vote 2 down vote accepted

The easiest way to accomplish this is to just check that little box at the bottom 'Treat all future networks that I connect to as public, and don't ask me again.' You can also get to this screen from the 'Network and Sharing Center' as shown from the screenshot below.

Network and Sharing Center

This solution is much less complicated than trying to cook up a script to do it.

Another possibility, in case the 'Public Network' isn't clickable, is to modify a registry key. The one of interest is this:

REG_DWORD key: HideWizard

From there you can modify or delete that key as you see fit.

share|improve this answer
But it still requires connecting to a wireless and user interaction which is exactly what I'm looking to avoid. That registry key may be more promising. – Joe Taylor Oct 3 '11 at 16:40
Modifying the registry key to 1 will disable this screen and treat all networks as public. Excluding networks that are predefined i.e. Domain networks connected in WDS deployment which is absolutely perfect. Thanks for the tip, I confirmed it using RegShot - – Joe Taylor Feb 28 '12 at 13:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .