Files
VSC/PowerShell/_Prove/UserCatch/UserCatch.ps1
T
claudio 368d6fafea Issue
Code backup
2026-05-10 16:59:01 +02:00

12 lines
443 B
PowerShell

$app = "PS - UserCatch"
$ver = "v 1.0"
$start = "Stai eseguendo:"
$exec = "Lo script $app e' in esecuzione."
Write-Host $start, $app, $ver
Write-Host $exec -fore Yellow
(1..254) | % {$IP ="172.16.94.$_"; Write-Output "$(
ForEach-Object {Test-Connection -ComputerName $IP -Count 1 -ErrorAction:SilentlyContinue -AsJob} | Get-Job | Receive-Job -Wait -AutoRemoveJob | Where-Object {$_.StatusCode -eq 0} | Select-Object -exp Address
)"}