首页 > 代码库 > Win7命令行下查看无线网络信息

Win7命令行下查看无线网络信息

查看本机记录的wifi热点

C:\Users\Milton>netsh wlan show profiles
Profiles on interface Wireless Network Connection:
Group policy profiles (read only)
---------------------------------
    <None>

User profiles
-------------
    All User Profile     : newifi_207D_5G
    All User Profile     : OpenWrt-5G
    All User Profile     : PandoraBox_3A7AA0_5G
    All User Profile     : WNDR3800-5G

查看本机的无线网卡运行状态, 从Radio Type可以看出是运行在2.4gHz还是5gHz

C:\Users\Milton>netsh wlan show interfaces

There is 1 interface on the system:

    Name                   : Wireless Network Connection
    Description            : Intel(R) Centrino(R) Advanced-N 6205
    GUID                   : 1235ajd-8eeb-4aef-b2c3-3f78e33b999
    Physical address       : 1f:30:a9:a6:dd:ac
    State                  : connected
    SSID                   : HiWiFi-5G
    BSSID                  : 00:0c:55:33:60:00
    Network type           : Infrastructure
    Radio type             : 802.11a
    Authentication         : WPA2-Personal
    Cipher                 : CCMP
    Connection mode        : Profile
    Channel                : 52
    Receive rate (Mbps)    : 150
    Transmit rate (Mbps)   : 150
    Signal                 : 99%
    Profile                : HiWiFi-5G

    Hosted network status  : Not available

查看无线网卡的驱动资料, 这里能看出此无线网卡支持的频段Radio Type Supported 以及支持的加密方式

C:\Users\Milton>Netsh WLAN show drivers

Interface name: Wireless Network Connection

    Driver                    : Intel(R) Centrino(R) Advanced-N 6205
    Vendor                    : Intel Corporation
    Provider                  : Intel
    Date                      : 2012/2/20
    Version                   : 15.1.0.18
    INF file                  : C:\Windows\INF\oem3.inf
    Files                     : 4 total
                                C:\Windows\system32\DRIVERS\Netwsw00.sys
                                C:\Windows\system32\Netwcw00.dll
                                C:\Windows\system32\Netwrw00.dll
                                C:\Windows\system32\drivers\vwifibus.sys
    Type                      : Native Wi-Fi Driver
    Radio types supported     : 802.11a 802.11b 802.11g
    FIPS 140-2 mode supported : Yes
    Hosted network supported  : Yes
    Authentication and cipher supported in infrastructure mode:
                                Open            None
                                Open            WEP-40bit
                                Open            WEP-104bit
                                Open            WEP
                                Shared          WEP-40bit
                                Shared          WEP-104bit
                                Shared          WEP
                                WPA-Enterprise  TKIP
                                WPA-Enterprise  CCMP
                                WPA-Personal    TKIP
                                WPA-Personal    CCMP
                                WPA2-Enterprise TKIP
                                WPA2-Enterprise CCMP
                                WPA2-Personal   TKIP
                                WPA2-Personal   CCMP
                                Open            Vendor defined
    Authentication and cipher supported in ad-hoc mode:
                                Open            None
                                Open            WEP-40bit
                                Open            WEP-104bit
                                Open            WEP
                                Shared          WEP-40bit
                                Shared          WEP-104bit
                                Shared          WEP
                                WPA2-Personal   CCMP

 

查看某个wifi热点的资料

C:\Users\Milton>netsh wlan show profile name="HiWiFi-5G"
Profile HiWiFi-5G on interface Wireless Network Connection:
=======================================================================
Applied: All User Profile
Profile information
-------------------
    Version                : 1
    Type                   : Wireless LAN
    Name                   : HiWiFi-5G
    Control options        :
        Connection mode    : Connect automatically
        Network broadcast  : Connect only if this network is broadcasting
        AutoSwitch         : Do not switch to other networks
Connectivity settings
---------------------
    Number of SSIDs        : 1
    SSID name              : "HiWiFi-5G"
    Network type           : Infrastructure
    Radio type             : [ Any Radio Type ]
    Vendor extension          : Not present
Security settings
-----------------
    Authentication         : WPA2-Personal
    Cipher                 : CCMP
    Security key           : Present

 

Win7命令行下查看无线网络信息