此 netsh mbn 命令用於配置、監控和排除移動寬帶(MBN)介面,包括蜂窩數據機和基於SIM的網路連線。 它提供了一系列選項來管理 Windows 上行動寬頻裝置的設定檔、連線、無線電狀態和進階設定。
WWAN AutoConfig 服務必須在您的裝置上執行,某些命令和參數才能運作。
Syntax
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|manualon
netsh mbn set dataenablement [interface=]<string> [profileset=]internet|mms|all [mode=]yes|no
netsh mbn set dataroamcontrol [interface=]<string> [profileset=]internet|mms|all [state=]none|partner|all
netsh mbn set enterpriseapnparams [interface=]<string> [allowusercontrol=]yes|no|nc [allowuserview=]yes|no|nc
[profileaction=]add|delete|modify|nc
netsh mbn set highestconncategory [interface=]<string> [highestcc=]admim|user|operator|device
netsh mbn set powerstate [interface=]<string> [state=]on|off
netsh mbn set profileparameter [name=]<string> [[interface=]<string>] [cost]=default|unrestricted|fixed|variable
netsh mbn set slotmapping [interface=]<string> [slotindex=]<integer>
netsh mbn set tracing [mode=]yes|no
netsh mbn show acstate [interface=]<string>
basestationinfo [interface=]<string>
capability [interface=]<string>
connection [interface=]<string>
d3cold [interface=]<string>
dataenablement [interface=]<string>
dataroamcontrol [interface=]<string>
dmprofiles [name=]<string> [interface=]<string>
enterpriseapnparams [interface=]<string>
highestconncategory [interface=]<string>
homeprovider [interface=]<string>
interfaces
McmInfo [interface=]<string>
netlteattachinfo [interface=]<string>
pin [interface=]<string>
pinlist [interface=]<string>
preferredproviders [interface=]<string>
profiles [name=]<string> [interface=]<string> [purpose=]<string>
profilestate [interface=]<string> [name=]<string>
provisionedcontexts [interface=]<string> [name=]<string>
purpose
radio [interface=]<string>
readyinfo [interface=]<string> [slotindex=]<integer>
signal [interface=]<string>
slotmapping [interface=]<string>
slotstatus [interface=]<string>
smsconfig [interface=]<string>
tracing
UICCCardAdditionalInfoWithEFHPLMNwAct [interface=]<string>
visibleproviders [interface=]<string>
netsh mbn test [feature=<feature area>] [testPath=<path>] [taefPath=<path>] [param=<test input params>]
Parameters
| Command | Description |
|---|---|
MBN add |
dmprofile - 為所有使用者新增指定介面的行動寬頻裝置管理組態設定檔: interface - 介面名稱。 name - XML 設定檔名稱。 profile - 為所有使用者新增指定介面的行動寬頻網路設定檔: interface - 介面名稱。 name - XML 設定檔名稱。 interface 和 name 是必要參數。 |
MBN connect |
使用指定的設定檔連線到行動寬頻網路。 在執行此命令之前,必須先註冊裝置。
interface 是必要參數。 connmode - 決定如何提供連線參數: - tmp:使用設定檔 XML 檔案進行臨時連線。 - name:使用先前與命令一起 netsh mbn add profile 儲存的設定檔。 name- 如果設為 tmp,請connmode指定設定檔 XML 檔名。 如果設定為 name,請connmode指定儲存的設定檔名稱。 |
MBN delete |
dmprofile - 移除指定介面的行動寬頻裝置管理組態設定檔。 interface - 介面名稱。 name - XML 設定檔名稱。 profile - 從指定的介面移除行動寬頻網路設定檔: interface - 介面名稱。 name - XML 設定檔名稱。 interface 和 name 是必要參數。 |
MBN disconnect |
在指定介面上中斷與行動寬頻網路的連線: interface - 介面名稱。 interface 是必要參數。 |
MBN dump |
建立包含目前前後關聯組態的指令碼。 腳本可以儲存到檔案中,並在設定被更改或需要在另一個系統上複製時用於還原設定。 |
MBN set |
設定下列其中一個設定: acstate - 在介面上設定行動寬頻資料的自動連線行為。 參數 interface 和 state 是必需的。 state - 配置下列其中一個值: - autooff:關閉自動連線權杖。 - autoon:開啟自動連線權杖。 - manualoff:關閉手動連線權杖。 - manualon:開啟手動連線權杖。 dataenablement - 啟用或停用指定設定檔集和介面的行動寬頻資料。 參數 interface、 profileset和 mode 是必需的。 profileset - 是設定檔集的名稱: - internet、 mms或 all - mode:啟用 (yes) 或停用 (no) 目標設定檔集。 dataroamcontrol - 在所選設定檔集和介面上調整行動寬頻的資料漫遊設定。 參數 interface、 profileset和 mode 是必需的。 profileset - 是設定檔集的名稱: - internet、 mms或 all - state:僅將變更套用至家庭電信業者 (none)、僅限家庭和合作夥伴電信業者 (partner) 或家庭、合作夥伴和漫遊電信業者 (all)。 enterpriseapnparams - 修改指定介面上行動寬頻的企業存取點名稱 (APN) 參數。 參數 interface、 allowusercontrol、 allowuserview和 profileaction 是必需的。 - allowusercontrol:允許 (yes) 或不允許 (no) 一般使用者控制 enterpriseAPN。 用於 nc 保持預設狀態。 - allowuserview:允許 (yes) 或不允許 (no) 一般使用者檢視 enterpriseAPN。 用於 nc 保持預設狀態。 - profileaction:新增 ()、add刪除 (delete) 或修改 (modify) enterpriseAPN 設定檔。 用於 nc 保持預設狀態。 highestconncategory - 指定指定介面上行動寬頻允許的最高連線類別。 參數 interface 和 highestcc 是必需的。 - 設定其中一個佈建的設定檔類型: - admin - user - operator - device powerstate - 開啟或關閉指定介面的行動寬頻無線電。 參數 interface 和 state 是必需的。 state:啟用 (yes) 或停用 (no) 無線電收發器。 profileparameter - 更新行動寬頻網路設定檔中的參數。 必須指定參數 name 和至少一個其他參數,例如 interface 或 cost。 - name:要修改的設定檔名稱。 - interface:介面名稱。 - cost:與設定檔相關聯的成本。 slotmapping - 在指定的介面上指派行動寬頻的數據機插槽對映。 參數 interface 和 slotindex 是必需的。 - interface:介面名稱。 - slotindex:要設定的介面插槽索引號。 tracing - 開啟或關閉行動寬頻作業的追蹤。
mode 是必要參數。 - mode:啟用行動寬頻的 (yes) 或 (disables) 追蹤。 |
MBN show |
顯示下列資訊: acstate interface= - 在指定介面上顯示行動寬頻資料的自動連線狀態。 basestationinfo interface= - 顯示指定介面的基地台資訊。 capability interface= - 顯示指定介面的功能詳細資料。 connection interface= - 顯示指定介面的現行連線詳細資料。 d3cold interface= - 指出數據機是否支援指定介面的 D3Cold 電源狀態。 dataenablement interface= - 顯示指定介面的資料啟用狀態。 dataroamcontrol interface= - 顯示指定介面的資料漫遊控制狀態。 dmprofiles - 列出系統上設定的 Direct Management Config 設定檔。 使用 和 interface 參數name來篩選特定介面上的特定設定檔。 enterpriseapnparams interface= - 顯示指定介面的企業 APN 參數。 highestconncategory interface= - 顯示指定介面的最高連線類別。 homeprovider interface= - 顯示指定介面的主提供者詳細資料。 interfaces - 列出系統上的所有行動寬頻介面。 McmInfo interface= - 顯示指定介面的 MCM 相關資訊。 netlteattachinfo interface= - 顯示指定介面的 LTE 連接資訊。 pin interface= - 顯示指定介面的 PIN 資訊。 pinlist interface= - 顯示指定介面的 PIN 清單。 preferredproviders interface= - 顯示指定介面的偏好提供者清單。 profiles - 列出系統上所有已配置的設定檔。 使用 和 interface 參數name來篩選特定介面上的特定設定檔。 如果提供,則 purpose 只會顯示具有相符用途 GUID 的設定檔。 下列字串是可接受的: - GUID - internet - supl - mms - ims - allhost profilestate - 顯示指定介面的設定檔狀態。
interface 和 name 是必要參數。 provisionedcontexts interface= - 顯示指定介面的佈建環境定義資訊。 purpose - 顯示可用的用途群組 GUID。 radio interface= - 顯示指定介面的無線電狀態資訊。 readyinfo - 顯示指定介面的整備資訊。 參數是 interface 必填的,而 slotindex 是選用的。 signal interface= - 顯示指定介面的訊號強度和品質。 slotmapping interface= - 顯示指定介面的數據機插槽對映。 slotstatus interface= - 顯示指定介面的數據機插槽狀態。 smsconfig interface= - 顯示指定介面的 SMS 配置詳細資料。 tracing - 指出是啟用還是停用追蹤。 UICCCardAdditionalInfoWithEFHPLMNwAct interface= - 在 UICC 中顯示指定介面的 EFInfo。 visibleproviders interface= - 顯示指定介面的可見提供者清單。 |
MBN test |
執行行動寬頻測試作業。 feature (必要) - 功能區域是否為: - connectivity - power - radio - esim - esimhlk - sms - dssa - lte - bringup - nr testpath - 是包含測試二進位檔的路徑。 taefpath - 是包含 TAEF 二進位檔的路徑。 param - 使用冒號分隔值測試其他欄位: - connectivity、 radio或 bringup: AccessString 或 UserName (如果適用) 和 Password (如果適用)。 - esim:這 ActivationCode. 和 taefPath參數在testPath安裝 HLK 伺服器的 amd64 裝置上是選擇性的。 |
mbn help 或 ? |
在目前內容中顯示命令及其描述的清單。 |
Remarks
對於包含空格的介面名稱,提供給參數的
interface值必須用雙引號 (“ ”) 括起來。如果您在內容中
mbn,您可以執行show interfaces以顯示所有介面名稱。
Examples
若要新增名為「行動網路」的行動寬頻介面的裝置管理設定檔,設定檔名稱為「EnterpriseDM」,請執行下列命令:
netsh mbn add dmprofile interface=Cellular name=EnterpriseDM
若要使用名為「temp_profile.xml」的暫存設定檔 XML 檔案連接行動寬頻介面 「行動網路」,請執行下列命令:
netsh mbn connect interface=Cellular connmode=tmp name=temp_profile.xml
若要中斷行動寬頻介面「行動網路」的連線,請執行下列命令:
netsh mbn disconnect interface=Cellular
若要開啟「行動網路」介面的自動連線,請執行下列命令:
netsh mbn set acstate interface=Cellular state=autoon
若要新增「行動網路」介面的企業 APN 設定檔,允許使用者控制和檢視,請執行下列命令:
netsh mbn set enterpriseapnparams interface=Cellular allowusercontrol=yes allowuserview=yes profileaction=add
若要顯示行動寬頻命令的追蹤狀態,請執行下列命令:
netsh mbn show tracing
若要使用 AccessString 「網際網路」執行連線測試,請執行下列命令:
netsh mbn test feature=connectivity param="AccessString=internet"
若要執行選取 DSSA 類別的 eSIM 測試,請執行下列命令:
netsh mbn test feature=esim param="/select:\"(@Category='DSSA')\""