Skip to content

Instantly share code, notes, and snippets.

@VictorGob
Last active November 3, 2021 12:29
Show Gist options
  • Save VictorGob/beaa98f14e580470bde0477b5a9666b0 to your computer and use it in GitHub Desktop.
Save VictorGob/beaa98f14e580470bde0477b5a9666b0 to your computer and use it in GitHub Desktop.
Script powershell para comprobar estado del wifi cada x segundos
# 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