Actions

Powershell: Ping Stuff: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

6 August 2026

  • curprev 19:5419:54, 6 August 2026Rabbi Bob talk contribs 993 bytes +993 Created page with "Category:Powershell Category:Weblog-2026-08 Provide a list of IP addresses, run the script. Checks DNS and outputs a results file. =Code= <pre> $deviceNames = Get-Content "devices.txt" $results = @() foreach ($name in $deviceNames) { $status = "Unknown" try { # Attempt to resolve DNS [System.Net.Dns]::GetHostEntry($name) $status = "Resolving..." # Check if device pings (up to 4 attempts with 1 second timeout) if (Test-Connect..."