Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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:

HKLM\System\CurrentControlSet\Control\Network\NetworkLocationWizard\
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
1  
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 - softpedia.com/get/Tweak/Registry-Tweak/Reg-Shot.shtml –  Joe Taylor Feb 28 '12 at 13:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.