Repair-DomainNetworkProfile

1.0.0

A domain member Server or PC should show DomainAuthenticated on its LAN connection. Windows grants that
category only itself, after the Network Location Awareness service (NlaSvc) has reached a domain controller
over the connection. If the network, DNS or the domain controller was not ready when the connection came up
(typical after a restart, and on domain controller
A domain member Server or PC should show DomainAuthenticated on its LAN connection. Windows grants that
category only itself, after the Network Location Awareness service (NlaSvc) has reached a domain controller
over the connection. If the network, DNS or the domain controller was not ready when the connection came up
(typical after a restart, and on domain controllers themselves), the connection falls back to Public and the
Windows Firewall applies the Public rules - Remote Desktop, file sharing and monitoring stop answering.
Set-NetConnectionProfile cannot set Domain.

The documented steps, in order:
 1. Is the computer a domain member, and which connections are not DomainAuthenticated?
 2. Does each connection use only DNS servers that can resolve the domain?
    (DNS SRV lookup _ldap._tcp.dc._msdcs.<domain>, the record Windows uses to find a domain controller)
 3. Can a domain controller be reached on LDAP (TCP 389)?
 4. Is the secure channel to the domain OK? (Test-ComputerSecureChannel, Windows PowerShell 5.1 only)
 5. Restart-Service NlaSvc -Force, then wait until the category is DomainAuthenticated (up to -WaitSeconds).

Steps 1-4 change nothing. Step 5 restarts a Windows service (network connections stay up; the profile is
re-detected, which takes a few seconds). Use -WhatIf to run the checks only; -CheckOnly does the same.

Needs an elevated PowerShell (Run as administrator) for step 5.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Repair-DomainNetworkProfile

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Coinetic AI Security - https://coinetic.io. MIT licence.

Package Details

Author(s)

  • Coinetic AI Security - https://coinetic.io

Tags

Coinetic Windows WindowsServer NetworkProfile DomainAuthenticated NlaSvc NLA DomainController DNS Firewall

Functions

Write-Step Write-Ok Write-Bad Test-TcpPort

Dependencies

This script has no dependencies.

Release Notes

1.0.0: checks why a domain network is Public (DNS, domain controller, secure channel) and restarts Network Location Awareness, with -WhatIf.

FileList

Version History

Version Downloads Last updated
1.0.0 (current version) 9 12/5/2026