mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-01 19:58:17 +02:00
Add list-wifi.ps1
This commit is contained in:
parent
500e987190
commit
7cfcff426e
@ -1,8 +1,8 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists all Bluetooth devices
|
||||
Lists Bluetooth devices
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists all Bluetooth devices.
|
||||
This PowerShell script lists all Bluetooth devices connected to the computer.
|
||||
.EXAMPLE
|
||||
PS> ./list-bluetooth-devices
|
||||
.LINK
|
||||
|
@ -189,6 +189,7 @@ function ListTools {
|
||||
CheckFor mktemp "--version"
|
||||
CheckFor mount "--version"
|
||||
CheckFor MpCmdRun "-h"
|
||||
CheckFor netsh ""
|
||||
CheckFor nice "--version"
|
||||
CheckFor nohup "--version"
|
||||
CheckFor nroff "--version"
|
||||
|
20
Scripts/list-wifi.ps1
Normal file
20
Scripts/list-wifi.ps1
Normal file
@ -0,0 +1,20 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists WIFI
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists the WIFI networks.
|
||||
.EXAMPLE
|
||||
PS> ./list-wifi
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
& netsh wlan show profile
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user