1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| # === Super Tool Fixed ===
Write-Host "Starting Scan..." -ForegroundColor Cyan
$now = Get-Date
Write-Host "Time: $now" -ForegroundColor Yellow
# 检查网络
$net = Get-NetAdapter | Where-Object { $_.Status -eq "Up" }
if ($net) {
Write-Host "OK: Network is Up!" -ForegroundColor Green
[System.Console]::Beep(1000, 200)
} else {
Write-Host "ERROR: Network Down!" -ForegroundColor Red
[System.Console]::Beep(500, 500)
}
Read-Host "Press Enter to exit..."
|