0

I have two Windows Server 2019 machines in my infrastructure which are connected on 'Guest or Public networks' and I have been unable to switch to domain network.

I have tried many solutions gathered around the Internet but none has been successful so far :

  • Restart NLA service
  • Replace NIC
  • Check DNS (properly registered)

I also notice that Powershell command 'Get-NetConnectionProfile' returns nothing. I guess there is no profile identified. The problem is that the machines are unable to get Windows Update packages from our WSUS machine.

What else can I do?

Charlypop
  • 1
  • 1
  • 1

2 Answers2

0

The NCP (Network Connection Profile) can be set "the hard way" through in registry key:

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

When you expand the Profiles key, you will see sub-keys with different GUIDs. Those are the networks you have "joined" till date and the key Description contains the networks name. Mostly DNS names, if suffixes were distributed through DHCP.

I you found "your" profile, change the DWORD value of Category accordingly:

0 (for "Public")
1 (for "Private")
2 (for "Domain")
bjoster
  • 4,805
  • 5
  • 25
  • 33
0

I've spent all day on this and is a niche answer, so I hope no one else will need it, but it may be useful for someone else. We had a power user 'fiddler'!

Running

Get-NetConnectionProfile

produced nothing. It should produces something, even unconfigured. My list of keys in reg key

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

Was empty. Turns our our 'power user' revoked permissions for NT Service\netprofm at the NetworkList Key and below. Readding permissions for this service account and disabling/reenabling the nic created a key and actually showed on the domain network.

To get the correct permissions, check against another PC on your network as there are a few permissions under Advanced permissions to restore it back to how it was.
image below in case you don't have another machine