Jump to content

Network Location Awareness Monitor?

Recommended Posts

So, earlier this year 2012 and 2016 servers started having goofy NLA (Network Location Awareness) issues where the NIC would detect the profile as just "Network" and not "domain.local"

We know that this is a quick fix with just restarting the NLA service.

Also, did the attempt at making the NLA service having an "Automatic - Delayed" start.

But we are seeing this happen in servers that are not rebooting.  Somehow, during the day or overnight, NLA just loses the domain.

How would I go about first, checking to make sure NLA has a domain, and second, creating a monitor that scripts the restart of the NLA service?

Or would it be simpler to just make a script that restarts the NLA service every day?


Share this post

Link to post
Share on other sites

I'm probably going to end up building a script around the idea of checking NLA's status and kicking the service, and scheduling that script to run a few times per day/night. My bit of PowerShell that'll determine if the service needs kicking:

Get-WmiObject MSFT_NetConnectionProfile -Namespace root/StandardCimv2 | Select -ExpandProperty NetworkCategory

If the result is '2' then it's in "domain" mode and the service can be left alone.

Hope that helps a bit.

  • Thanks 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...