To resolve this issue follow the steps listed below:
Close or suspend any applications that uses the network.
Click Start, type device manager in the Search programs and files box, and then press Enter.
Browse list of devices and click to expand Network adapters
Right-click on the first adapter under Network Adapters and click Disable.
(Repeat this step for all network adapters on your system under Network Adapters).
Note After each change, Device Manager will rescan your hardware. Your monitor may blink when refreshed, this is expected.
While still in Device Manager, re-enable only the adapter that’s associated with the public-network setting that you are trying to change.
(Example, if you’re trying to connect to your wireless network, enable the wireless adapter.)
Note Your system will notice your network reappearing and try to connect. This connection attempt may fail, but that’s ok, this is expected.
Click Start, and type Network and sharing Center in the Search programs and files box, and then click Network and Sharing Center, from the list
In the lower left side of the dialog box, click Choose homegroup and sharing options.
Click What is a network location?, and select your network location.
Note If you want to continue setting up a homegroup, follow the remaining prompts. But a homegroup isn’t required, so you also can simply exit the homegroup setup after you select the correct network location.
The last step is to re-enable your remaining adapters, one by one in Device Manager. To do this simply Right-click each of the disabled adapters under Network Adapters and click Enable.
When all Network Adapters are enabled, close the Device Manager and youre done.