Test-Connection | I do stuff sometimes.

Ramblings about things.

Archives

Powershell Ping


This neat little thing wil test connection for a list of pingable DNS names (URLS, switches, servers, computers, whatever), and output the result in a list with the objects IP address(es). If the ICMP ping does not reach the object, it outputs this and jumps to the next object on its list. Hurray! cls $servers…

Read More

Find server OS with Powershell and TTL


This handy little thing will identify the Operating System on one or more servers, using the OS’s default TTL value as a trigger. (Some OS’ uses different TTL values. Most of them are listed on this site.) cls $servers = “Server1″,”Server2” foreach ($server in $servers) { $TTL = Test-Connection $server -Count 1 | select -exp…

Read More

  • Archives