Juil 162017
A lancer en PowerShell
mkdir wifi cd wifi netsh wlan export profile key=clear $retour=@() dir *.xml |% { $xml=[xml] (get-content $_) $tmp='' |select SSID,Password $tmp.SSID=$xml.WLANProfile.SSIDConfig.SSID.name $tmp.password=$xml.WLANProfile.MSM.Security.sharedKey.keymaterial $retour+=$tmp } cd .. rmdir -recurse wifi $retour | format-table -autosize
Et voilà…
mkdir wifi
cd wifi
netsh wlan export profile key=clear
dir *.xml |% { [xml] (get-content $_) |select @{n= »SSID »;e={$_.WLANProfile.SSIDConfig.SSID.name}},@{n= »Password »;e={$_.WLANProfile.MSM.Security.sharedKey.keymaterial}} }
cd ..
rmdir -recurse wifi