netsh e os perfis cmd diferem da barra de tarefas

1

Estou tentando descobrir como reconciliar os perfis wlan que posso mostrar na janela cmd versus o que minha barra de tarefas mostra. Eles são diferentes.

A barra de tarefas wifi mostra mais conexões Wi-Fi RECENTES vs. o prompt cmd? Estou curioso b / c, por vezes, o meu ISP vai parar de trabalhar e aH eu posso ter que emprestar wi-fi do meu vizinho.

Sim, pesquisei isso um pouco, mas nada ajudou. thx

    
por DATAfiend 23.12.2017 / 16:56

1 resposta

1

how do I delete the saved profiles and save new SSID's

Excluir perfil Wi-Fi

NETSH WLAN DELETE PROFILE NAME="<WLAN Profile Name>"

fonte de exemplo

Conectar ao SSID Wi-Fi

NETSH WLAN CONNECT SSID=<SSID> NAME=<WLAN Profile Name>

fonte de exemplo

Adicionar perfil Wi-Fi com frase secreta

So you already know netsh wlan

If you enter it you get a list of possible commands. One is add.

If you enter netsh wlan add you get another list of possible subcommands. One is profile.

If you enter netsh wlan add profile you get a detailed explanation about all its possible parameters. One needed parameter is a XML file containing the profile informations.

So how to get such an XML file? Go back to netsh wlan and study the keywords. There is export.

If you enter netsh wlan export you get another list of possible subcommands. One is profile. It creates an XML in your local directory containing the needed informations for your current WiFi connection.

If you like to get the password in clear text, you'll also have to add the parameter key=clear. Make the whole command becoming

netsh wlan export profile key=clear

Here is an example which already contains the needed placeholders

<?xml version="1.0"?>
<WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1">
 <name>{SSID}</name>
 <SSIDConfig>
     <SSID>
         <name>{SSID}</name>
     </SSID>
 </SSIDConfig>
 <connectionType>ESS</connectionType>
 <connectionMode>auto</connectionMode>
 <MSM>
     <security>
         <authEncryption>
             <authentication>WPA2PSK</authentication>
             <encryption>AES</encryption>
             <useOneX>false</useOneX>
         </authEncryption>
         <sharedKey>
             <keyType>passPhrase</keyType>
             <protected>false</protected>
             <keyMaterial>{password}</keyMaterial>
         </sharedKey>
     </security>
 </MSM>
 <MacRandomization xmlns="http://www.microsoft.com/networking/WLAN/profile/v3">
     <enableRandomization>false</enableRandomization>
 </MacRandomization>
</WLANProfile>
     

Basta substituir as palavras-chave {SSID} (ocorre duas vezes) e    {password} com os valores desejados e importe esse arquivo chamando

netsh wlan add profile filename="myProfile.xml"
     

source

Mais recursos

por 24.12.2017 / 21:37