Netsh Commands for Mobile Broadband Network (MBN) (2024)

  • Article

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Azure Stack HCI, versions 21H2 and 20H2

You can use netsh mbn to query and configure Mobile Broadband Network (MBN) settings and parameters.

Tip

You can get help on the netsh mbn command by using

netsh mbn /?

The available netsh mbn commands are:

  • add
  • connect
  • delete
  • disconnect
  • diagnose
  • dump
  • help
  • set
  • show
  • test

add

Adds a configuration entry to a table.

The available netsh mbn add commands are:

  • dmprofile
  • profile

dmprofile

Adds a DM Config profile in the Profile Data Store.

Syntax

add dmprofile [interface=]<string> [name=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
nameName of the profile XML file. The name of the XML file containing the profile data.Required

Example

add dmprofile interface="Cellular" name="Profile1.xml"

profile

Adds a network profile in the Profile Data Store.

Syntax

add profile [interface=]<string> [name=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
nameName of the profile XML file. The name of the XML file containing the profile data.Required

Example

add profile interface="Cellular" name="Profile1.xml"

connect

Connects to a Mobile Broadband network.

Syntax

connect [interface=]<string> [connmode=]tmp|name [name=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
connmodeSpecifies how connection parameters are being provided. You can request the connection either using a profile XML, or using a profile name for the profile XML that has been previously stored in the Mobile Broadband Profile Data Store using the netsh mbn add profile command. In former case, the parameter connmode shall hold tmp as value. Whereas it shall be name in the latter caseRequired
nameName of the profile XML file. The name of the XML file containing the profile data.Required

Examples

connect interface="Cellular" connmode=tmp name=d:\profile.xmlconnect interface="Cellular" connmode=name name=MyProfileName

delete

Deletes a configuration entry from a table.

The available netsh mbn delete commands are:

  • dmprofile
  • profile

dmprofile

Deletes a DM Config profile from the Profile Data Store.

Syntax

delete dmprofile [interface=]<string> [name=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
nameName of the profile XML file. The name of the XML file containing the profile data.Required

Example

delete dmprofile interface="Cellular" name="myProfileName"

profile

Deletes a network profile from the Profile Data Store.

Syntax

delete profile [interface=]<string> [name=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
nameName of the profile XML file. The name of the XML file containing the profile data.Required

Example

delete profile interface="Cellular" name="myProfileName"

diagnose

Runs diagnostics for basic cellular problems.

Syntax

diagnose [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

diagnose interface="Cellular"

disconnect

Disconnects from a Mobile Broadband network.

Syntax

disconnect [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

disconnect interface="Cellular"

dump

Displays a configuration script.

Creates a script that contains the current configuration. If saved to a file, this script can be used to restore altered configuration settings.

Syntax

dump

help

Displays a list of commands.

Syntax

help

set

Sets configuration information.

The available netsh mbn set commands are:

  • acstate
  • dataenablement
  • dataroamcontrol
  • enterpriseapnparams
  • highestconncategory
  • powerstate
  • profileparameter
  • slotmapping
  • tracing

acstate

Sets the Mobile Broadband data auto connect state for the given interface.

Syntax

set acstate [interface=]<string> [state=]autooff|autoon|manualoff|manualon

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
nameThe auto connect state to be set. One of the following values:
autooff: Auto connect token off.
autoon: Auto connect token on.
manualoff: Manual connect token off.
manualon: Manual connect token on.
Required

Example

set acstate interface="Cellular" state=autoon

dataenablement

Turns the Mobile Broadband data on or off for the given profile set and interface.

Syntax

set dataenablement [interface=]<string> [profileset=]internet|mms|all [mode=]yes|no

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
profilesetName of the profile set.Required
modeOne of the following values:
yes: Enables the target profile set.
no: Disables the target profile set.
Required

Example

set dataenablement interface="Cellular" profileset=mms mode=yes

dataroamcontrol

Sets the Mobile Broadband data roam control state for the given profile set and interface.

Syntax

set dataroamcontrol [interface=]<string> [profileset=]internet|mms|all [state=]none|partner|all

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
profilesetName of the profile set.Required
modeOne of the following values:
none: Home carrier only.
partner: Home and partner carriers only.
all: Home, partner, and roaming carriers.
Required

Example

set dataroamcontrol interface="Cellular" profileset=mms mode=partner

enterpriseapnparams

Sets the Mobile Broadband data enterpriseAPN parameters for the given interface.

Syntax

set enterpriseapnparams [interface=]<string> [allowusercontrol=]yes|no|nc [allowuserview=]yes|no|nc [profileaction=]add|delete|modify|nc

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
allowusercontrolOne of the following values:
yes: allow user control enterpriseAPN.
no: disallow user control enterpriseAPN.
nc: no change.
Required
allowuserviewOne of the following values:
yes: allow user view enterpriseAPN.
no: disallow user view enterpriseAPN.
nc: no change.
Required
profileactionOne of the following values:
add: an enterpriseAPN profile is added.
delete: an enterpriseAPN profile is deleted.
modify: an enterpriseAPN profile is modified.
nc: no change.
Required

Example

set enterpriseapnparams interface="Cellular" profileset=mms mode=yes

highestconncategory

Sets the Mobile Broadband data highest connection category for the given interface.

Syntax

set highestconncategory [interface=]<string> [highestcc=]admim|user|operator|device

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
highestccOne of the following values:
admin: admin provisioned profiles.
user: user provisioned profiles.
operator: operator provisioned profiles.
device: device provisioned profiles.
Required

Example

set highestconncategory interface="Cellular" highestcc=operator

powerstate

Turns the Mobile Broadband radio on or off for the given interface.

Syntax

set powerstate [interface=]<string> [state=]on|off

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
stateOne of the following values:
on: power on radio transceiver.
off: power off the radio transceiver.
Required

Example

set powerstate interface="Cellular" state=on

profileparameter

Set parameters in a Mobile Broadband Network Profile.

Syntax

set profileparameter [name=]<string> [[interface=]<string>] [[cost]=default|unrestricted|fixed|variable]

Parameters

ParameterDescriptionRequirement
nameName of the profile to be modified. If the interface is specified, then only the profile on that interface is modified.Required
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Optional
costCost associated with the profile.Optional

Remarks

At least one parameter between the interface name and the cost must be specified.

Example

set profileparameter name="profile 1" cost=default

slotmapping

Sets the Mobile Broadband modem slot mapping for the given interface.

Syntax

set slotmapping [interface=]<string> [slotindex=]<integer>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
slotindexSlot index to be set.Required

Example

set slotmapping interface="Cellular" slotindex=1

tracing

Enable or disable tracing.

Syntax

set tracing [mode=]yes|no

Parameters

ParameterDescriptionRequirement
modeOne of the following values:
yes: Enables tracing for Mobile Broadband.
no: Disables tracing for Mobile Broadband.
Required

Example

set tracing mode=yes

show

Displays mobile broadband network information.

The available netsh mbn show commands are:

  • acstate
  • capability
  • connection
  • dataenablement
  • dataroamcontrol
  • dmprofiles
  • enterpriseapnparams
  • highestconncategory
  • homeprovider
  • interfaces
  • netlteattachinfo
  • pin
  • pinlist
  • preferredproviders
  • profiles
  • profilestate
  • provisionedcontexts
  • purpose
  • radio
  • readyinfo
  • signal
  • slotmapping
  • slotstatus
  • smsconfig
  • tracing
  • visibleproviders

acstate

Shows the Mobile Broadband data auto connect state for the given interface.

Syntax

show acstate [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show acstate interface="Cellular"

capability

Shows the interface capability information for the given interface.

Syntax

show capability [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show capability interface="Cellular"

connection

Shows the current connection information for the given interface.

Syntax

show connection [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show connection interface="Cellular"

dataenablement

Shows the Mobile Broadband data enablement state for the given interface.

Syntax

show dataenablement [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show dataenablement interface="Cellular"

dataroamcontrol

Shows the Mobile Broadband data roam control state for the given interface.

Syntax

show dataroamcontrol [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show dataroamcontrol interface="Cellular"

dmprofiles

Shows a list of DM Config profiles configured on the system.

Syntax

show dmprofiles [[name=]<string>] [[interface=]<string>]

Parameters

ParameterDescriptionRequirement
nameName of the profile to display.Optional
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Optional

Remarks

Shows the profile data or lists the profiles on the system.

If the profile name is given, then the content of the profile are displayed. Otherwise profiles are listed for the interface.

If the interface name is given, only the specified profile on the given interface are listed. Otherwise, the first matched profile is displayed.

Example

show dmprofiles name="profile 1" interface="Cellular"show dmprofiles name="profile 2"show dmprofiles

enterpriseapnparams

Shows the Mobile Broadband data enterpriseAPN parameters for the given interface.

Syntax

show enterpriseapnparams [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show enterpriseapnparams interface="Cellular"

highestconncategory

Shows the Mobile Broadband data highest connnection category for the given interface.

Syntax

show highestconncategory [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show highestconncategory interface="Cellular"

homeprovider

Shows the home provider information for the given interface.

Syntax

show homeprovider [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show homeprovider interface="Cellular"

interfaces

Shows a list of Mobile Broadband interfaces on the system. There are no parameters for this command.

Syntax

show interfaces

netlteattachinfo

Shows the Mobile Broadband network LTE attach information for the given interface.

Syntax

show netlteattachinfo [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show netlteattachinfo interface="Cellular"

pin

Shows the pin information for the given interface.

Syntax

show pin [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show pin interface="Cellular"

pinlist

Shows the pin list information for the given interface.

Syntax

show pinlist [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show pinlist interface="Cellular"

preferredproviders

Shows the preferred providers list for the given interface.

Syntax

show preferredproviders [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show preferredproviders interface="Cellular"

profiles

Shows a list of profiles configured on the system.

Syntax

show profiles [[name=]<string>] [[interface=]<string>] [[purpose=]<string>]

Parameters

ParameterDescriptionRequirement
nameName of the profile to display.Optional
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Optional
purposePurposeOptional

Remarks

If the profile name is given, then the content of the profile are displayed. Otherwise profiles are listed for the interface.

If the interface name is given, only the specified profile on the given interface will be listed. Otherwise, the first matched profile is displayed.

If the purpose is provided, only profiles with the matching purpose GUID are displayed. Otherwise, profiles won't be filtered by purpose. The string can either be a GUID with curly brackets or one of the following strings: internet, supl, mms, ims, or allhost.

Example

show profiles interface="Cellular" purpose="{00000000-0000-0000-0000-000000000000}"show profiles name="profile 1" interface="Cellular"show profiles name="profile 2"show profiles

profilestate

Shows the state of a Mobile Broadband profile for the given interface.

Syntax

show profilestate [interface=]<string> [name=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required
nameName of the profile. The name of the profile that has the state to be shown.Required

Example

show profilestate interface="Cellular" name="myProfileName"

provisionedcontexts

Shows the provisioned contexts information for the given interface.

Syntax

show provisionedcontexts [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show provisionedcontexts interface="Cellular"

purpose

Shows the purpose group GUIDs that can be used to filter profiles on the device. There are no parameters for this command.

Syntax

show purpose

radio

Shows the radio state information for the given interface.

Syntax

show radio [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show radio interface="Cellular"

readyinfo

Shows the ready information for the given interface.

Syntax

show readyinfo [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show readyinfo interface="Cellular"

signal

Shows the signal information for the given interface.

Syntax

show signal [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show signal interface="Cellular"

slotmapping

Shows the Mobile Broadband modem slot mapping for the given interface.

Syntax

show slotmapping [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show slotmapping interface="Cellular"

slotstatus

Shows the Mobile Broadband modem slot status for the given interface.

Syntax

show slotstatus [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show slotstatus interface="Cellular"

smsconfig

Shows the SMS configuration information for the given interface.

Syntax

show smsconfig [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show smsconfig interface="Cellular"

tracing

Shows whether Mobile Broadband tracing is enabled or disabled.

Syntax

show tracing

visibleproviders

Shows the visible providers list for the given interface.

Syntax

show visibleproviders [interface=]<string>

Parameters

ParameterDescriptionRequirement
interfaceInterface name. One of the interface names shown by netsh mbn show interfaces command.Required

Example

show visibleproviders interface="Cellular"

test

Runs tests for a specific feature area, while collecting logs.

Syntax

test [feature=<feature area>] [testPath=<path>] [taefPath=<path>] [param=<test input params>]

Parameters

TagValueOptional?
featureA feature area out of the supported feature areas listed in the following remarks sectionRequired
testpathPath containing the test binariesOptional if HLK Server is installed
taefpathPath containing the TAEF binariesOptional if HLK Server is installed
paramComma separated parameters, to be used for the testsRequired for certain feature areas, optional for others

Remarks

Supported feature areas are:

  • connectivity
  • power
  • radio
  • esim
  • sms
  • dssa
  • lte
  • bringup

Some tests require more parameters to be provided in the param field.Here are the required parameters for the features:

  • connectivity: AccessString, UserName (If applicable), Password (If applicable)
  • radio: AccessString, UserName (If applicable), Password (If applicable)
  • esim: ActivationCode
  • bringup: AccessString, UserName (If applicable), Password (If applicable)

Examples

test feature=connectivity param="AccessString=internet"test feature=lte testpath="C:\\data\\test\\bin" taefpath="C:\\data\\test\\bin"test feature=lte
Netsh Commands for Mobile Broadband Network (MBN) (2024)

FAQs

Netsh Commands for Mobile Broadband Network (MBN)? ›

At the command prompt, type netsh wlan show wlanreport. This will generate a wireless network report that's saved as an HTML file, which you can open in your favorite web browser. The report shows all the Wi-Fi events from the last three days and groups them by Wi-Fi connection sessions.

How to check internet connectivity with netsh? ›

At the command prompt, type netsh wlan show wlanreport. This will generate a wireless network report that's saved as an HTML file, which you can open in your favorite web browser. The report shows all the Wi-Fi events from the last three days and groups them by Wi-Fi connection sessions.

What is the netsh command in CMD? ›

Netsh is a command-line scripting utility that allows you to display or modify the network configuration of a computer that is currently running. Netsh commands can be run by typing commands at the netsh shell and be used in batch files or scripts.

How to capture network trace with netsh? ›

Do the following to collect a network traffic trace with netsh: Run Powershell with elevated rights and enter a command "netsh trace start capture=yes tracefile=<location>". Parameter tracefile specifies the output file—if not specified, the captured trace is stored in a file %LOCALAPPDATA%\Temp\NetTraces\NetTrace.

What is the Command Prompt to check Internet connection? ›

Here, we'll use the Windows Command Prompt. Press Windows + R in Windows. Type “cmd” into the search box in the Run window, then press Enter. Enter “ping” followed by the URL or IP address you want to ping at the prompt.

What is the command to check network connections? ›

You can also check your network connections and traffic by typing “netstat -a” in the command prompt.

What is the netsh command for Wi-Fi signal strength? ›

Search for Command Prompt and click the top result to open the app. Type the following command to view the Wi-Fi signal strength and press Enter: netsh wlan show interfaces. See the Signal field to determine the signal quality. (If the output number is equal or higher than 80, then the strength of the signal is good.)

How to see network information in cmd? ›

Right-click/ Run as administrator. (Command line displays). Enter ipconfig. If instead, you type ipconfig /all and press ENTER.

How do I trace a network connection? ›

Press Windows key + R to open the Run window. Enter cmd and press Enter to open a Command Prompt. Enter tracert, a space, then the IP address or web address for the destination site (for example: tracert www.lexis.com). Press Enter.

How do I trace network activity? ›

The best way to check network traffic is with a tool like SolarWinds® Bandwidth Analyzer Pack (BAP). BAP is built to automatically check and compile network traffic insights from devices across your network in a centralized dashboard and alert you to any concerning behavior in your network.

How can I see what's connected to my Wi-Fi using cmd? ›

Type the command "arp -a" to view the list of all IP addresses connected to your network. This will also display the MAC address and the allocation type (static and dynamic) of all your network devices. Type "nslookup" followed by any IP address obtained through the "arp" command in the previous step.

How do I check my internet connectivity? ›

Select the Start button, then type settings. Select Settings > Network & internet. The status of your network connection will appear at the top.

How to check Wi-Fi Signal using cmd? ›

Search for Command Prompt and click the top result to open the app. Type the following command to view the Wi-Fi signal strength and press Enter: netsh wlan show interfaces. See the Signal field to determine the signal quality. (If the output number is equal or higher than 80, then the strength of the signal is good.)

How to check network connections using netstat? ›

Type netstat -a -n. Press Enter. Observe active TCP and UDP connections and listening ports, the local address and port number, the remote name or address and port number if a connection is established, and the connection status. Close the command prompt to complete this activity.

Top Articles
Latest Posts
Article information

Author: Kareem Mueller DO

Last Updated:

Views: 6201

Rating: 4.6 / 5 (46 voted)

Reviews: 85% of readers found this page helpful

Author information

Name: Kareem Mueller DO

Birthday: 1997-01-04

Address: Apt. 156 12935 Runolfsdottir Mission, Greenfort, MN 74384-6749

Phone: +16704982844747

Job: Corporate Administration Planner

Hobby: Mountain biking, Jewelry making, Stone skipping, Lacemaking, Knife making, Scrapbooking, Letterboxing

Introduction: My name is Kareem Mueller DO, I am a vivacious, super, thoughtful, excited, handsome, beautiful, combative person who loves writing and wants to share my knowledge and understanding with you.