Email dw Contents About dw
[Company Logo Image]

at The Data Center

"A space for AD, Exchange and other technical stuff"

 

 -- Where Information Technology Lives!  --

 


 

Ping a single address

Get-WmiObject -Class Win32_PingStatus -Filter "Address='SomeServer'"

Ping a subnet

1..254| ForEach-Object -Process {Get-WmiObject -Class Win32_PingStatus -Filter ("Address='192.168.1." + $_ + "'") -ComputerName .} | Select-Object -Property Address,ResponseTime,StatusCode