CmdID

CmdID / Commands / netsh

netsh nlm

The netsh nlm command allows admins to manage the Network Location Manager (NLM) settings and behavior by manually overriding how Windows classifies the network connection quality. Windows commands reference

On Windows

Opens CmdID with your command. It is read in your browser and sent nowhere.

Windows

from the Windows commands reference, CC BY 4.0
netsh nlm [ dump | enum | help | query | set | show | ?]
netsh nlm enum <connection> <network>
netsh nlm query all
netsh nlm set connectionquality [<guid> [good|bad|ignore]]
netsh nlm show <connectivity> <cost>

To enumerate the current network connections, run the following command

netsh nlm enum connectionIdentify

To query all network states and save the results to a file, run the following command

netsh nlm query all <Filepath\Filename>Identify

To manually set the connection quality of a network interface to "good", run the following command

netsh nlm set connectionquality <My_GUID> goodIdentify

To display the current connectivity state, run the following command

netsh nlm show connectivityIdentify
nlm dumpCreates a script containing the current context configuration. The script can be saved to a file and used to restore settings if they're altered or need to be replicated on another system.
nlm enumconnection - Enumerates the current INetworkConnection objects. network - Enumerates the current INetwork objects.
nlm query allQueries all network states from all supported services and writes to a file. A file path and name must be specified to save results.
nlm set connectionqualityManually sets the connection quality of a network interface, overriding the connection quality classification by the Network classifier. guid - Is the interface GUID. good - Forces Windows to consider the specified network interface’s connection quality as stable and reliable. bad - Forces Windows to consider the specified network interface’s connection quality as unreliable where certain features might disable themselves, or services might limit their operations. ignore - Forces Windows to not override its own assessment. Windows determines the connection quality by itself, based on its normal detection algorithms (reverting automatic classification).
nlm showconnectivity - Displays the current connectivity state from the INetworkListManager. cost - Displays the current cost from the INetworkCostManager.
help or ?Displays a list of commands and their descriptions in the current context.