Skip to content

Instantly share code, notes, and snippets.

@stahler
Created March 5, 2019 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stahler/d27b94673de9d187aaf87dac6dd1910f to your computer and use it in GitHub Desktop.
Save stahler/d27b94673de9d187aaf87dac6dd1910f to your computer and use it in GitHub Desktop.
$data = @'
Interface name : TP-LINK
There are 1 networks currently visible.
SSID 1 : CableWiFi
Network type : Infrastructure
Authentication : Open
Encryption : None
BSSID 1 : dx:a7:x9:xx:xa:xx
Signal : 92%
Radio type : 802.11n
Channel : 12
Basic rates (Mbps) : 60
Other rates (Mbps) : 5.5 9 11 12 18 24 36 48 54 96
Interface name : TP-LINK
There are 1 networks currently visible.
SSID 1 : CableWiFi2
Network type : Infrastructure
Authentication : Open
Encryption : None
BSSID 1 : dx:a7:x9:xx:xa:xx
Signal : 91%
Radio type : 802.11n
Channel : 11
Basic rates (Mbps) : 60
Other rates (Mbps) : 5.5 9 11 12 18 24 36 48 54 96
'@
$template = @'
Interface name : TP-LINK
There are 1 networks currently visible.
SSID 1 : {[string]SSID*:CableWiFi}
Network type : Infrastructure
Authentication : Open
Encryption : None
BSSID 1 : dx:a7:x9:xx:xa:xx
Signal : {Signal:91%}
Radio type : 802.11n
Channel : {[int]Channel:11}
Basic rates (Mbps) : 60
Other rates (Mbps) : 5.5 9 11 12 18 24 36 48 54 96
Interface name : TP-LINK
There are 1 networks currently visible.
SSID 1 : {[string]SSID*:CableWiFi2}
Network type : Infrastructure
Authentication : Open
Encryption : None
BSSID 1 : dx:a7:x9:xx:xa:xx
Signal : {Signal:92%}
Radio type : 802.11n
Channel : {[int]Channel:12}
Basic rates (Mbps) : 60
Other rates (Mbps) : 5.5 9 11 12 18 24 36 48 54 96
'@
$data | ConvertFrom-String -TemplateContent $template
@stahler
Copy link
Author

stahler commented Mar 5, 2019

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment