Skip to content

Commit 7c0c931

Browse files
Merge pull request #7583 from MicrosoftDocs/main
Auto Publish – main to live - 2025-10-10 17:30 UTC
2 parents 5bfe4ca + a7fe948 commit 7c0c931

4 files changed

Lines changed: 243 additions & 0 deletions

File tree

WindowsServerDocs/administration/windows-commands/TOC.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,10 +1080,14 @@
10801080
href: netsh-ipsec.md
10811081
- name: netsh lan
10821082
href: netsh-lan.md
1083+
- name: netsh mbn
1084+
href: netsh-mbn.md
10831085
- name: netsh namespace
10841086
href: netsh-namespace.md
10851087
- name: netsh netio
10861088
href: netsh-netio.md
1089+
- name: netsh nlm
1090+
href: netsh-nlm.md
10871091
- name: netsh ras
10881092
href: netsh-ras.md
10891093
- name: netsh rpc
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
---
2+
title: netsh mbn
3+
description: The netsh mbn command manages Mobile Broadband (MBN) interfaces, cellular modems, and SIM-based network connections in Windows.
4+
ms.topic: reference
5+
ms.author: alalve
6+
author: xelu86
7+
ms.date: 10/09/2025
8+
---
9+
10+
# netsh mbn
11+
12+
The `netsh mbn` command is used to configure, monitor, and troubleshoot Mobile Broadband (MBN) interfaces, including cellular modems and SIM-based network connections. It provides a range of options for managing profiles, connections, radio states, and advanced settings for mobile broadband devices on Windows.
13+
14+
The **WWAN AutoConfig** service must be running on your device for certain commands and parameters to function.
15+
16+
## Syntax
17+
18+
```
19+
netsh mbn [add | connect | delete | disconnect | dump | help | set | show | test | ?]
20+
```
21+
22+
```
23+
netsh mbn add dmprofile [interface=]<string> [name=]<string>
24+
netsh mbn add profile [interface=]<string> [name=]<string>
25+
```
26+
27+
```
28+
netsh mbn connect [interface=]<string> [connmode=]tmp|name [name=]<string>
29+
```
30+
31+
```
32+
netsh mbn delete dmprofile [interface=]<string> [name=]<string>
33+
netsh mbn delete profile [interface=]<string> [name=]<string>
34+
```
35+
36+
```
37+
netsh mbn disconnect [interface=]<string>
38+
```
39+
40+
```
41+
netsh mbn set acstate [interface=]<string> [state=]autooff|autoon|manualoff|manualon
42+
netsh mbn set dataenablement [interface=]<string> [profileset=]internet|mms|all [mode=]yes|no
43+
netsh mbn set dataroamcontrol [interface=]<string> [profileset=]internet|mms|all [state=]none|partner|all
44+
netsh mbn set enterpriseapnparams [interface=]<string> [allowusercontrol=]yes|no|nc [allowuserview=]yes|no|nc
45+
[profileaction=]add|delete|modify|nc
46+
netsh mbn set highestconncategory [interface=]<string> [highestcc=]admim|user|operator|device
47+
netsh mbn set powerstate [interface=]<string> [state=]on|off
48+
netsh mbn set profileparameter [name=]<string> [[interface=]<string>] [cost]=default|unrestricted|fixed|variable
49+
netsh mbn set slotmapping [interface=]<string> [slotindex=]<integer>
50+
netsh mbn set tracing [mode=]yes|no
51+
```
52+
53+
```
54+
netsh mbn show acstate [interface=]<string>
55+
basestationinfo [interface=]<string>
56+
capability [interface=]<string>
57+
connection [interface=]<string>
58+
d3cold [interface=]<string>
59+
dataenablement [interface=]<string>
60+
dataroamcontrol [interface=]<string>
61+
dmprofiles [name=]<string> [interface=]<string>
62+
enterpriseapnparams [interface=]<string>
63+
highestconncategory [interface=]<string>
64+
homeprovider [interface=]<string>
65+
interfaces
66+
McmInfo [interface=]<string>
67+
netlteattachinfo [interface=]<string>
68+
pin [interface=]<string>
69+
pinlist [interface=]<string>
70+
preferredproviders [interface=]<string>
71+
profiles [name=]<string> [interface=]<string> [purpose=]<string>
72+
profilestate [interface=]<string> [name=]<string>
73+
provisionedcontexts [interface=]<string> [name=]<string>
74+
purpose
75+
radio [interface=]<string>
76+
readyinfo [interface=]<string> [slotindex=]<integer>
77+
signal [interface=]<string>
78+
slotmapping [interface=]<string>
79+
slotstatus [interface=]<string>
80+
smsconfig [interface=]<string>
81+
tracing
82+
UICCCardAdditionalInfoWithEFHPLMNwAct [interface=]<string>
83+
visibleproviders [interface=]<string>
84+
```
85+
86+
```
87+
netsh mbn test [feature=<feature area>] [testPath=<path>] [taefPath=<path>] [param=<test input params>]
88+
```
89+
90+
## Parameters
91+
92+
| Command | Description |
93+
|--|--|
94+
| mbn `add` | `dmprofile` - Adds a Mobile Broadband Device Management Config Profile for the given interface for all users: <br> `interface` - The interface name. <br> `name` - The XML profile name. <br><br> `profile` - Adds a Mobile Broadband Network Profile for the given interface for all users: <br> `interface` - The interface name. <br> `name` - The XML profile name. <br><br> The `interface` and `name` parameters are required. |
95+
| mbn `connect` | Connects to a Mobile Broadband Network using a specified profile. The device must be registered before running this command. The `interface` parameter is required. <br><br> `connmode` - Determines how connection parameters are provided: <br> - `tmp`: Use a profile XML file for a temporary connection. <br> - `name`: Use a profile that was previously stored with the `netsh mbn add profile` command. <br><br> `name` - If `connmode` is set to `tmp`, specify the profile XML file name. If `connmode` is set to `name`, specify the stored profile name. |
96+
| mbn `delete` | `dmprofile` - Removes a Mobile Broadband Device Management Config Profile for the given interface. <br> `interface` - The interface name. <br> `name` - The XML profile name. <br><br> `profile` - Removes a Mobile Broadband Network Profile from the given interface: <br> `interface` - The interface name. <br> `name` - The XML profile name. <br><br> The `interface` and `name` parameters are required. |
97+
| mbn `disconnect` | Disconnects from the Mobile Broadband Network on the specified interface: <br> `interface` - The interface name. <br><br> The `interface` parameter is required. |
98+
| mbn `dump` | Creates 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. |
99+
| mbn `set` | Configures one of the following settings: <br><br> `acstate` - Configures the auto-connect behavior for Mobile Broadband data on the interface. The parameters `interface` and `state` are required. <br> `state` - Configures one of the following values: <br> - `autooff`: Turns auto connect token off. <br> - `autoon`: Turns auto-connect token on. <br> - `manualoff`: Turns off the manual connect token. <br> - `manualon`: Turns on the manual connect token. <br><br> `dataenablement` - Enables or disables Mobile Broadband data for a specified profile set and interface. The parameters `interface`, `profileset`, and `mode` are required. <br> `profileset` - Is the name of the profile set: <br> - `internet`, `mms`, or `all` <br> - `mode`: Enables (`yes`) or disables (`no`) the target profile set. <br><br> `dataroamcontrol` - Adjusts data roaming settings for Mobile Broadband on the selected profile set and interface. The parameters `interface`, `profileset`, and `mode` are required. <br> `profileset` - Is the name of the profile set: <br> - `internet`, `mms`, or `all` <br> - `state`: Applies changes to the home carrier only (`none`), home and partner carriers only (`partner`), or home, partner, and roaming carriers (`all`). <br><br> `enterpriseapnparams` - Modifies enterprise Access Point Name (APN) parameters for Mobile Broadband on the specified interface. The parameters `interface`, `allowusercontrol`, `allowuserview`, and `profileaction` are required. <br> - `allowusercontrol`: Allows (`yes`) or disallows (`no`) end user control of enterpriseAPN. Use `nc` to leave at default state. <br> - `allowuserview`: Allows (`yes`) or disallows (`no`) end user view of enterpriseAPN. Use `nc` to leave at default state. <br> - `profileaction`: Adds (`add`), deletes (`delete`) or modifies (`modify`) an enterpriseAPN profile. Use `nc` to leave at default state. <br><br> `highestconncategory` - Specifies the highest allowed connection category for Mobile Broadband on the given interface. The parameters `interface` and `highestcc` are required. <br> - Sets one of the provisioned profile types: <br> - `admin` <br> - `user` <br> - `operator` <br> - `device` <br><br> `powerstate` - Switches the Mobile Broadband radio on or off for the specified interface. The parameters `interface` and `state` are required. <br> `state`: Enables (`yes`) or disables (`no`) the radio transceiver. <br><br> `profileparameter` - Updates parameters within a Mobile Broadband Network Profile. The `name` parameter and at least one other parameter, such as `interface` or `cost`, must be specified. <br> - `name`: The profile name to be modified. <br> - `interface`: The interface name. <br> - `cost`: The cost associated with the profile. <br><br> `slotmapping` - Assigns modem slot mapping for Mobile Broadband on the specified interface. The parameters `interface` and `slotindex` are required. <br> - `interface`: The interface name. <br> - `slotindex`: The interface slot index number to be set. <br><br> `tracing` - Turns tracing on or off for Mobile Broadband operations. The `mode` parameter is required. <br> - `mode`: Enables (`yes`) or (`disables`) tracing for the Mobile Broadband. |
100+
| mbn `show` | Displays on of the following information: <br><br> `acstate interface=` - Displays the auto connect state for Mobile Broadband data on the specified interface. <br><br> `basestationinfo interface=` - Displays base station information for the specified interface. <br><br> `capability interface=` - Displays capability details for the specified interface. <br><br> `connection interface=` - Displays current connection details for the specified interface. <br><br> `d3cold interface=` - Indicates whether the modem supports D3Cold power state for the specified interface. <br><br> `dataenablement interface=` - Displays the data enablement status for the specified interface. <br><br> `dataroamcontrol interface=` - Displays the data roaming control status for the specified interface. <br><br> `dmprofiles` - Lists Direct Management Config profiles configured on the system. Use the `name` and `interface` parameters to filter for specific profiles on certain interfaces. <br><br> `enterpriseapnparams interface=` - Displays enterprise APN parameters for the specified interface. <br><br> `highestconncategory interface=` - Displays the highest connection category for the specified interface. <br><br> `homeprovider interface=` - Displays home provider details for the specified interface. <br><br> `interfaces` - Lists all Mobile Broadband interfaces on the system. <br><br> `McmInfo interface=` - Displays MCM-related information for the specified interface. <br><br> `netlteattachinfo interface=` - Displays LTE attach information for the specified interface. <br><br> `pin interface=` - Displays PIN information for the specified interface. <br><br> `pinlist interface=` - Displays the list of PINs for the specified interface. <br><br> `preferredproviders interface=` - Displays the list of preferred providers for the specified interface. <br><br> `profiles` - Lists all configured profiles on the system. Use the `name` and `interface` parameters to filter for specific profiles on certain interfaces. If `purpose` is provided, only profiles with the matching purpose GUID are displayed. The following strings are acceptable: <br> - `GUID` <br> - `internet` <br> - `supl` <br> - `mms` <br> - `ims` <br> - `allhost` <br><br>`profilestate` - Displays the state of a profile for the specified interface. The `interface` and `name` parameters are required. <br><br> `provisionedcontexts interface=` - Displays provisioned context information for the specified interface. <br><br> `purpose` - Displays available purpose group GUIDs. <br><br> `radio interface=` - Displays radio state information for the specified interface. <br><br> `readyinfo` - Displays readiness information for the specified interface. The `interface` parameter is required while `slotindex` is optional. <br><br> `signal interface=` - Displays signal strength and quality for the specified interface. <br><br> `slotmapping interface=` - Displays modem slot mapping for the specified interface. <br><br> `slotstatus interface=` - Displays modem slot status for the specified interface. <br><br> `smsconfig interface=` - Displays SMS configuration details for the specified interface. <br><br> `tracing` - Indicates whether tracing is enabled or disabled. <br><br> `UICCCardAdditionalInfoWithEFHPLMNwAct interface=` - Displays EFInfo in UICC for the specified interface. <br><br> `visibleproviders interface=` - Displays the list of visible providers for the specified interface. |
101+
| mbn `test` | Performs mobile broadband testing operations. <br><br> `feature` (required) - Is the feature area: <br> - `connectivity` <br> - `power` <br> - `radio` <br> - `esim` <br> - `esimhlk` <br> - `sms` <br> - `dssa` <br> - `lte` <br> - `bringup` <br> - `nr` <br> `testpath` - Is the path containing the test binaries. <br> `taefpath` - Is the path containing the TAEF binaries. <br> `param` - Tests other fields using colon separated values: <br> - `connectivity`, `radio`, or `bringup`: The `AccessString` or `UserName` (if applicable), and `Password` (if applicable). <br> - `esim`: The `ActivationCode`. <br><br> The `testPath` and `taefPath` parameters are optional on amd64 devices where HLK Server is installed. |
102+
| mbn `help` or `?` | Displays a list of commands and their descriptions in the current context. |
103+
104+
## Remarks
105+
106+
- Values given to the `interface` parameter must be wrapped in double quotes (**" "**) for interface names containing a space.
107+
108+
- If you're in the `mbn` context, you can run `show interfaces` to display all interface names.
109+
110+
## Examples
111+
112+
To add a Device Management profile for the mobile broadband interface named "Cellular", with the profile name "EnterpriseDM", run the following command:
113+
114+
```cmd
115+
netsh mbn add dmprofile interface=Cellular name=EnterpriseDM
116+
```
117+
118+
To connect the mobile broadband interface "Cellular" using a temporary profile XML file named "temp_profile.xml", run the following command:
119+
120+
```cmd
121+
netsh mbn connect interface=Cellular connmode=tmp name=temp_profile.xml
122+
```
123+
124+
To disconnect the mobile broadband interface "Cellular", run the following command:
125+
126+
```cmd
127+
netsh mbn disconnect interface=Cellular
128+
```
129+
130+
To turn on auto-connect for the "Cellular" interface, run the following command:
131+
132+
```cmd
133+
netsh mbn set acstate interface=Cellular state=autoon
134+
```
135+
136+
To add an enterprise APN profile for the "Cellular" interface, allowing user control, and view, run the following command:
137+
138+
```cmd
139+
netsh mbn set enterpriseapnparams interface=Cellular allowusercontrol=yes allowuserview=yes profileaction=add
140+
```
141+
142+
To display the tracing status for Mobile Broadband commands, run the following command:
143+
144+
```cmd
145+
netsh mbn show tracing
146+
```
147+
148+
To perform a connectivity test with the AccessString "internet", run the following command:
149+
150+
```cmd
151+
netsh mbn test feature=connectivity param="AccessString=internet"
152+
```
153+
154+
To perform an eSIM test that selects the DSSA category, run the following command:
155+
156+
```cmd
157+
netsh mbn test feature=esim param="/select:\"(@Category='DSSA')\""
158+
```
159+
160+
## See also
161+
162+
- [Command-Line Syntax Key](command-line-syntax-key.md)
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
---
2+
title: netsh nlm
3+
description: The netsh nlm command manages the Network Location Manager (NLM) settings to override network connection quality classification in Windows.
4+
ms.topic: reference
5+
ms.author: alalve
6+
author: xelu86
7+
ms.date: 10/09/2025
8+
---
9+
10+
# netsh nlm
11+
12+
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.
13+
14+
## Syntax
15+
16+
```
17+
netsh nlm [ dump | enum | help | query | set | show | ?]
18+
```
19+
20+
```
21+
netsh nlm enum <connection> <network>
22+
```
23+
24+
```
25+
netsh nlm query all
26+
```
27+
28+
```
29+
netsh nlm set connectionquality [<guid> [good|bad|ignore]]
30+
```
31+
32+
```
33+
netsh nlm show <connectivity> <cost>
34+
```
35+
36+
## Parameters
37+
38+
| Command | Description |
39+
|--|--|
40+
| nlm `dump` | Creates 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. |
41+
| nlm `enum` | `connection` - Enumerates the current INetworkConnection objects. <br> `network` - Enumerates the current INetwork objects. |
42+
| nlm `query all` | Queries all network states from all supported services and writes to a file. A file path and name must be specified to save results. |
43+
| nlm `set connectionquality` | Manually sets the connection quality of a network interface, overriding the connection quality classification by the Network classifier. <br><br> `guid` - Is the interface GUID. <br> `good` - Forces Windows to consider the specified network interface’s connection quality as stable and reliable. <br> `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. <br> `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). |
44+
| nlm `show` | `connectivity` - Displays the current connectivity state from the INetworkListManager. <br> `cost` - Displays the current cost from the INetworkCostManager. |
45+
| `help` *or* `?` | Displays a list of commands and their descriptions in the current context. |
46+
47+
## Examples
48+
49+
To enumerate the current network connections, run the following command:
50+
51+
```cmd
52+
netsh nlm enum connection
53+
```
54+
55+
To query all network states and save the results to a file, run the following command:
56+
57+
```cmd
58+
netsh nlm query all <Filepath\Filename>
59+
```
60+
61+
To manually set the connection quality of a network interface to "good", run the following command:
62+
63+
```cmd
64+
netsh nlm set connectionquality <My_GUID> good
65+
```
66+
67+
To display the current connectivity state, run the following command:
68+
69+
```cmd
70+
netsh nlm show connectivity
71+
```
72+
73+
## See also
74+
75+
- [Command-Line Syntax Key](command-line-syntax-key.md)

WindowsServerDocs/administration/windows-commands/windows-commands.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,8 +564,10 @@ To find information about a specific command, in the following A-Z menu, select
564564
- [netsh http](netsh-http.md)
565565
- [netsh ipsec](netsh-ipsec.md)
566566
- [netsh lan](netsh-lan.md)
567+
- [netsh mbn](netsh-mbn.md)
567568
- [netsh namespace](netsh-namespace.md)
568569
- [netsh netio](netsh-netio.md)
570+
- [netsh nlm](netsh-nlm.md)
569571
- [netsh ras](netsh-ras.md)
570572
- [netsh rpc](netsh-rpc.md)
571573
- [netsh set](netsh-set.md)

0 commit comments

Comments
 (0)