change unidentified network from public to work in windows 7

Revision as of 09:15, 1 September 2013 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

After upgrading Main computer (one that connect to DSL modem) on LAN, other PC's are able to get internet. But failed to ping on

Method 1

Go to

Start > Search > secpol.msc

Navigate to

Network List Manager Policies > Unidentified Networks

Double Click and Change Location Type to


Warning This means from now on all Unidentified Networks will be set as private!!

Method 2

NOTE: This is temporary solution, on rebooting, changes will be lost

This is caused by Network card that connect to lan with IP is assigned as a "Public Network". Public Network have many features disabled for security.

To fix this, run "ChangeCategory.psl" on Power Shell running as Administrator.

Copy and paste following content to a text file, save it as ChangeCategory.psl

$NLMType = [Type]::GetTypeFromCLSID('DCB00C01-570F-4A9B-8D69-199FDBA5723B')
$INetworkListManager = [Activator]::CreateInstance($NLMType)

$UNIDENTIFIED = "Unidentified network"

$INetworks = $INetworkListManager.GetNetworks($NLM_ENUM_NETWORK_CONNECTED)

foreach ($INetwork in $INetworks)
    $Name = $INetwork.GetName()
    $Category = $INetwork.GetCategory()

    if ($INetwork.IsConnected -and ($Category -eq $NLM_NETWORK_CATEGORY_PUBLIC) -and ($Name -eq $UNIDENTIFIED))

Now run power shell as administrator.


set-executionpolicy remotesigned

This should be done in folder where ChangeCategory.ps1 is saved.

Powershell change network.jpg

After doing this, Network and Sharing Center will show

Network undefined network.jpg

Windows Firewall will show "undefined network" in "Home or work (private) networks". Being in private network, you get privileges to share, ping etc...

Firewall undefined network.jpg

windows 7