I've tried to find a solution by myself and I apologize if it was already answered somewhere but I could'nt make this work by myself.
I have written a script that list of wifi networks, get different informations and put them in a hash table. From there I've created a PSObject.
The code looks like this :
$WLANS=@{}
$wlanData = netsh wlan show networks mode=BSSID
( ... Here i extract all the info from $Wlandata ...)
$WLANS.SSID = $SSID
$WLANS.BSSID = $BSSID
$WLANS.RSSI = $RSSI
$(foreach ($ht in $WLANS){new-object PSObject -Property $ht}) | Format-Table -AutoSize
The outpout looks like this :
RSSI SSID BSSID
---- ---- -----
{97, 16} {TEST, SFR-6019} {xx:xx:xx:xx:xx:xx, yy:yy:yy:yy:yy:yy}
and i want it to look like this :
RSSI SSID BSSID
---- ---- -----
97 TEST xx:xx:xx:xx:xx:xx
16 SFR-6019 yy:yy:yy:yy:yy:yy
I have tried different things but i always get the same kind of output. If anybody can help it would be greatly appreciated !