netsh mbn
The netsh mbn command is used to configure, monitor, and troubleshoot Mobile Broadband (MBN) interfaces, including cellular modems and SIM-based network connections. Windows commands reference
On Windows
Windows
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. The WWAN AutoConfig service must be running on your device for certain commands and parameters to function. - Values given to the interface parameter must be wrapped in double quotes (" ") for interface names containing a space. - If you're in the mbn context, you can run show interfaces to display all interface names.
netsh mbn [add | connect | delete | disconnect | dump | help | set | show | test | ?]netsh mbn add dmprofile [interface=]<string> [name=]<string>netsh mbn add profile [interface=]<string> [name=]<string>netsh mbn connect [interface=]<string> [connmode=]tmp|name [name=]<string>netsh mbn delete dmprofile [interface=]<string> [name=]<string>netsh mbn delete profile [interface=]<string> [name=]<string>netsh mbn disconnect [interface=]<string>netsh mbn set acstate [interface=]<string> [state=]autooff|autoon|manualoff|manualonnetsh mbn set dataenablement [interface=]<string> [profileset=]internet|mms|all [mode=]yes|nonetsh mbn set dataroamcontrol [interface=]<string> [profileset=]internet|mms|all [state=]none|partner|allnetsh mbn set enterpriseapnparams [interface=]<string> [allowusercontrol=]yes|no|nc [allowuserview=]yes|no|nc[profileaction=]add|delete|modify|nc
To add a Device Management profile for the mobile broadband interface named "Cellular", with the profile name "EnterpriseDM", run the following command
netsh mbn add dmprofile interface=Cellular name=EnterpriseDMIdentifyTo connect the mobile broadband interface "Cellular" using a temporary profile XML file named "temp_profile.xml", run the following command
netsh mbn connect interface=Cellular connmode=tmp name=temp_profile.xmlIdentifyTo disconnect the mobile broadband interface "Cellular", run the following command
netsh mbn disconnect interface=CellularIdentifyTo turn on auto-connect for the "Cellular" interface, run the following command
netsh mbn set acstate interface=Cellular state=autoonIdentifyTo add an enterprise APN profile for the "Cellular" interface, allowing user control, and view, run the following command
netsh mbn set enterpriseapnparams interface=Cellular allowusercontrol=yes allowuserview=yes profileaction=addIdentifyTo display the tracing status for Mobile Broadband commands, run the following command
netsh mbn show tracingIdentifyTo perform a connectivity test with the AccessString "internet", run the following command
netsh mbn test feature=connectivity param="AccessString=internet"IdentifyTo perform an eSIM test that selects the DSSA category, run the following command
netsh mbn test feature=esim param="/select:\"(@Category='DSSA')\""Identifymbn adddmprofile - Adds a Mobile Broadband Device Management Config Profile for the given interface for all users:
interface - The interface name.
name - The XML profile name.
profile - Adds a Mobile Broadband Network Profile for the given interface for all users:
interface - The interface name.
name - The XML profile name.
The interface and name parameters are required.mbn connectConnects to a Mobile Broadband Network using a specified profile. The device must be registered before running this command. The interface parameter is required.
connmode - Determines how connection parameters are provided:
- tmp: Use a profile XML file for a temporary connection.
- name: Use a profile that was previously stored with the netsh mbn add profile command.
name - If connmode is set to tmp, specify the profile XML file name. If connmode is set to name, specify the stored profile name.mbn deletedmprofile - Removes a Mobile Broadband Device Management Config Profile for the given interface.
interface - The interface name.
name - The XML profile name.
profile - Removes a Mobile Broadband Network Profile from the given interface:
interface - The interface name.
name - The XML profile name.
The interface and name parameters are required.mbn disconnectDisconnects from the Mobile Broadband Network on the specified interface:
interface - The interface name.
The interface parameter is required.mbn 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.mbn setConfigures one of the following settings:
acstate - Configures the auto-connect behavior for Mobile Broadband data on the interface. The parameters interface and state are required.
state - Configures one of the following values:
- autooff: Turns auto connect token off.
- autoon: Turns auto-connect token on.
- manualoff: Turns off the manual connect token.
- manualon: Turns on the manual connect token.
dataenablement - Enables or disables Mobile Broadband data for a specified profile set and interface. The parameters interface, profileset, and mode are required.
profileset - Is the name of the profile set:
- internet, mms, or all
- mode: Enables (yes) or disables (no) the target profile set.
dataroamcontrol - Adjusts data roaming settings for Mobile Broadband on the selected profile set and interface. The parameters interface, profileset, and mode are required.
profileset - Is the name of the profile set:
- internet, mms, or all
- state: Applies changes to the home carrier only (none), home and partner carriers only (partner), or home, partner, and roaming carriers (all). …mbn showDisplays on of the following information:
acstate interface= - Displays the auto connect state for Mobile Broadband data on the specified interface.
basestationinfo interface= - Displays base station information for the specified interface.
capability interface= - Displays capability details for the specified interface.
connection interface= - Displays current connection details for the specified interface.
d3cold interface= - Indicates whether the modem supports D3Cold power state for the specified interface.
dataenablement interface= - Displays the data enablement status for the specified interface.
dataroamcontrol interface= - Displays the data roaming control status for the specified interface.
dmprofiles - Lists Direct Management Config profiles configured on the system. Use the name and interface parameters to filter for specific profiles on certain interfaces.
enterpriseapnparams interface= - Displays enterprise APN parameters for the specified interface.
highestconncategory interface= - Displays the highest connection category for the specified interface.
homeprovider interface= - Displays home provider details for the specified interface. …mbn testPerforms mobile broadband testing operations.
feature (required) - Is the feature area:
- connectivity
- power
- radio
- esim
- esimhlk
- sms
- dssa
- lte
- bringup
- nr
testpath - Is the path containing the test binaries.
taefpath - Is the path containing the TAEF binaries.
param - Tests other fields using colon separated values:
- connectivity, radio, or bringup: The AccessString or UserName (if applicable), and Password (if applicable).
- esim: The ActivationCode.
The testPath and taefPath parameters are optional on amd64 devices where HLK Server is installed.mbn help or ?Displays a list of commands and their descriptions in the current context.