Last active
November 3, 2021 12:29
-
-
Save VictorGob/beaa98f14e580470bde0477b5a9666b0 to your computer and use it in GitHub Desktop.
Script powershell para comprobar estado del wifi cada x segundos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check status | |
Write-Host "Checkeando wiffi" | |
while($true) | |
{ | |
$output = "" | |
$red = "" | |
$fecha = Get-Date | |
$red = netsh wlan show interfaces | select-string -Pattern '\sSSID','\sSeñal','\sEstado ' | Out-String | |
$output = "$fecha $red" | |
Write-Host $output | |
Add-Content wiffi_status.txt -Value $output | |
Start-Sleep -s 10 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment