User Tools

Site Tools


networking:windows:network_profiles

How to Change Current Network Location Profile

Registry

The registry key path to a Windows computer’s network profiles (wired and wireless):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles

:!: The Domain connection type also needs the Managed value set to 1 and the the NameType set to 6.

The Category value sets type of connection:

0 = Public (sharing disabled)
1 = Private (home, sharing enabled)
2 = Domain (AD, sharing enabled)

How NLA Works

http://blogs.technet.com/b/networking/archive/2010/09/08/network-location-awareness-nla-and-how-it-relates-to-windows-firewall-profiles.aspx

The DomainAuthenticated category is set automatically. If you need to change from Private to DomainAuthenticated, try rebooting the server.
If rebooting is problematic, you might try disabling, then re-enabling the network interface in question.

In PowerShell

Get-NetConnectionProfile

Set-NetConnectionProfile -InterfaceIndex 18 -NetworkCategory Private

or perhaps:

Set-NetConnectionProfile -InterfaceAlias * -NetworkCategory Private

In the GUI

:!: You can also see these settings in gpedit.msc.

Run secpol.msc.

Restore Unidentified Networks to:

  • Default Not Configured
  • Private (Work)
  • Public

Bonded Connections (NIC Teams)

Set the Network Location Awareness service to Automatic (Delayed Start).

networking/windows/network_profiles.txt · Last modified: 2022/08/11 08:44 by gcooper