當 SSID 包含空格時如何使用 Netsh wlan?

當 SSID 包含空格時如何使用 Netsh wlan?

我無法使用網路無線區域網當我嘗試使用的網路包含空格時命令。例如:使用具有 SSID 的網路時“一些網絡”

C:\Users\Padmanava>netsh wlan show profile Some Network key=clear
There is no such wireless interface on the system.

但是當使用具有 SSID 的網路時“某網路“ 效果非常好

C:\Users\Padmanava>netsh wlan show profile Lenovo key=clear

Profile Lenovo on interface Wi-Fi 2:
=======================================================================

Applied: All User Profile

Profile information
-------------------
    Version                : 1
    Type                   : Wireless LAN
    Name                   : Lenovo
    Control options        :
        Connection mode    : Connect automatically
        Network broadcast  : Connect only if this network is broadcasting
        AutoSwitch         : Do not switch to other networks
        MAC Randomization  : Disabled

Connectivity settings
---------------------
    Number of SSIDs        : 1
    SSID name              : "Lenovo"
    Network type           : Infrastructure
    Radio type             : [ Any Radio Type ]
    Vendor extension          : Not present

Security settings
-----------------
    Authentication         : WPA2-Personal
    Cipher                 : CCMP
    Security key           : Present
    Key Content            : not_your_network

Cost settings
-------------
    Cost                   : Unrestricted
    Congested              : No
    Approaching Data Limit : No
    Over Data Limit        : No
    Roaming                : No
    Cost Source            : Default

有什麼方法可以處理 SSID 包含空格的網路嗎?

另外,我無權存取路由器,因此無法更改 SSID。

答案1

您應該對包含空格的 SSID 使用引號。

例如:如果您的 WiFi 名稱是 WiFi Hotspot,請在命令中將其寫入「WiFi Hotspot」。

答案2

使用 Netsh 時使用“*”代替空格

答案3

你可以嘗試:

netsh wlan show profiles name="NAME OF NETWORK" key=clear

相關內容