2

I upgraded the Network Card Drivers for my Domain Controller but now it is seeing the local lan as a PUBLIC network which is messing with my firewall rules.

How do I switch it back to DOMAIN?

Cade
  • 39
  • 1
  • 1
  • 7
  • Check the answers here, many still apply for server 2012r2 http://serverfault.com/questions/362374/domain-controller-thinks-its-on-a-public-network – Drifter104 Dec 18 '15 at 15:12

3 Answers3

9

try

net stop nlasvc as admin

if this works, you can set this service (nlasvc) to "start delayed"

HBruijn
  • 77,029
  • 24
  • 135
  • 201
BlackForrest
  • 91
  • 1
  • 2
  • 2
    This is how I was able to resolve the issue on my system after a power outage made this happen on my desktop. Using the Powershell method only resulted in "Unable to set NetworkCategory to 'DomainAuthenticated'." – Ben Personick Jul 16 '19 at 15:55
2

You can use Powershell to achieve this. First you have to list network profile

Get-NetConnectionProfile

Use interface index to change the network interface to domain.

Set-NetConnectionProfile -InterfaceIndex 7 -NetworkCategory Domain

Sam Doxy
  • 446
  • 4
  • 7
  • 4
    I tried that, and I am getting the error: set-netconnectionprofile : Unable to set NetworkCategory to 'DomainAuthenticated'. This NetworkCategory type will be set automatically when authenticated to a domain network. – Karl Henselin Sep 26 '17 at 03:24
  • Be sure that you are using the rigth interface Index – Sam Doxy Oct 17 '17 at 14:24
  • Had the same error as @KarlHenselin. Index was right. Had to remove the server from the domain, then rejoin. – Gustav Jan 06 '19 at 12:31
0

Here is the answer... https://social.technet.microsoft.com/Forums/windowsserver/en-US/98f41513-df6f-4065-975a-6d6dc2308a94/server-2012-r2-change-network-location-from-public-to-private

Reboot or disable/enable the NIC afterwards.

Jaco Smit
  • 1
  • 2
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/527464) – Swisstone Aug 12 '22 at 04:35
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 24 '22 at 15:45