Is it possible to change an "Unidentified Network" into a "Home" or "Work" network on Windows 7

I have a problem with Windows 7 RC (7100).

I frequently use a crossover network cable on WinXP with static IP addresses to connect to various industrial devices (e.g. robots, pumps, valves or even other Windows PCs) that have Ethernet network ports.

When I do this on Windows 7, the network connection is classed as an "Unidentified Network" in Networks and Sharing Center and the public firewall profile is enforced by Windows. I do not want to change the public profile and would prefer to use the Home or Work profile instead.

For other networks like Home and Work I'm able to click on them and change the classification. This is not available for unidentified networks.

My questions are these:-

  1. Is there a way to manual override the "Unidentified Network" classification?
  2. What tests are performed on the network that fail, therefore classifying it as an "Unidentified Network"

By googling (hitting mainly vista issues) it seems that you need to ensure that the default gateway is not 0.0.0.0. I've done this. I've also tried to remove IPv6 but this does not seem possible on Windows 7.

UPDATE

For those still having problems here is the answer to my issue and the possible reasons why:-

Win7 keeps a list of the networks you visit by (I am assuming, but don’t know for sure) the MACID of the device pointed to by the Default Gateway. The default gateway is usually the constant device in a network (i.e. the NAT or router) so can be used to uniquely identify one network from another.

The default gateway in the IPv4 properties panel must therefore point to an actual endpoint so windows can then keep track of it. If there is a device at the end of the Default Gateway windows will identify it and track it remembering its settings.

The ways you can therefore fool Win7 is to either point the default gateway to your own IP address, or the IP address of the target device you’re communicating with. This will have the side effect of expecting that target device to start routing packets for IP destinations that are outside your subnet. So some applications on Win7 will try to communicate with the internet, these will be passed on to the default gateway (either back you the same IP address or a target device that is not a router) and thus will eventually timeout because neither can route packets. Which you can usually live with. This gets slightly complicated when you mix a this type of connection with a real connection to the internet via WIFI. The wired network card usually has priority when routing because of the “interface metric” so some applications might not connect correctly.


I had the same problem in a Win 7 Ultimate, running in a VirtualBox VM, with Linux Mint 8 as host. After reading some answers here, I just added the default gateway to my static IP in Win 7 and set it to be the IP address of the VirtualBox adapter in my host OS. And that was it... It just worked and I was able to change that "Unidentified Network" that was bugging me...


Press WinKey+R, type "secpol.msc" without quotes. Then click Network List Manager Policies on the left, and then you should be able to change it from there.


I fixed it after many hours. Here's my situation and my workaround. Hope it helps.

At home I have 2 broadband internet connections. One is ADSL (20 Mbps) behind a router with DHCP and the second is Cable (120 Mbps) directly behind the modem (public IP to the computer). Both lines go to my Mediacenter-PC which is always on and runs Kerio Control (https://www.kerio.nl/products/control/). Kerio is a software based router that supports link fail over. As you can see, having a working internet connection is critical for me. A third network interface card is configured with a static IP (192.168.3.1), Kerio runs a DHCP-server on it and is connected to my home network.

I did two things, but I think the real trick was the second. Anyway, the first step was that I ran the Powershell script mentioned at http://blogs.msdn.com/b/dimeby8/archive/2009/06/10/change-unidentified-network-from-public-to-work-in-windows-7.aspx . This changes all Unidentified networks to Work-networks. Okay, not unidentified anymore but Homegroup won't startup on Work networks!

Windows 7 detects your home network by looking at it's gateway. Because I was running the gateway/router on the same PC, I didn't fill out the gateway IP. So it won't give the popup to identify the network and you won't be able to set it to Home manually. I also failed to do it in script.

Setting the gateway to the static IP address also didn't work because Windows removes the gateway address (192.168.3.1) after pressing OK. My trick: Add a second IP to the NIC. E.g. 192.168.3.254. Then leave the primary IP (in my case 192.168.3.1) and set the gateway IP to the second IP (192.168.3.254). A few secs later, Windows will raise the popup and select 'Home network' and you're done!