scan.ps1

1
2
3
4
5
6
7
8
9
10
11
# assuming module is installed from PSGallery
Import-Module Get-WLANs

# run scan, sort by RSSI, and display as a Format-Table
Get-WLANs | Sort-Object -Property RSSI -Descending | Format-Table

# export to CSV example
# Get-WLANs | Select-Object * | Export-Csv -Path .\Get-WLANs.csv -NoTypeInformation

# remove module after we're done with it
Remove-Module Get-WLANs