Forcing Windows to forget home/work/public status of a network
I want to temporarily disable the "is this network a home/work/public" prompt when my program is running and the computer joins a new network. I found how to do this using HKCU\Software\Microsoft\Windows NT\CurrentVersion\Network\NwCategoryWizard\Show (see http://msdn.microsoft.com/en-us/library/gg252535(v=ws.10).aspx) but I'm not sure how to test that my code actually works. How can I get my computer to forget the setting for a given network, such that when I connect to it I will get that popup again? (this is purely for verifiying that my program works, any kind of UI that I haven't been able to find or a regkey I can delete would be ideal) I've tried clicking the icon in "view your active networks" in the network and sharing center, which brings up a "Set Network Properties" dialog, and when you click the "Merge or delete network locations" link you go to a "Merge or Delete Network Locations". (though you can't delete a network if it's in use, so I had to attach to another network to delete the first one) I also tried deleting the regkeys that looked relevant (HKLM\Windows\CurrentVersion\HomeGroup\NetworkLocation and HKLM\Windows NT\CurrentVersion\NetworkList) but that didn't seem to help, even after a reboot. Does anyone know how to force Windows to forget that information, such that I'll (in normal conditions, without my program running) pop the dialog without me needing to buy a new router each time I want to test this? I just want a baseline for my experiment so I can verify that my code is working... Thanks in advance, AidanAidan
January 6th, 2011 5:37pm

You may restart the Network Location Awareness service. Also you can try the steps in the following website. http://windows.microsoft.com/en-US/windows-vista/Choosing-a-network-location Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2011 4:00am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics