Test to see if this host is online and accessible.
Sends two pings the the hostname, then attempts to access the admin share for this host.
Hostname or IP address to be tested.
This will allow you to skip the ping test when validating a host is up.
This will allow you to skip the share test when validating a host is up.
Tests the host with both two pings and an admin share connection test.
Test-Host DanielPC -p
Test-Host DanielPC -skipPingTest
Tests the host by admin share test and skips the ping test…
Test-Host DanielPC -s
Test-Host DanielPC -skipShareTest
Tests the host by ping test only and skips the admin share test…
"DanielPC " | Test-Host
Receives input from the pipeline for testing if a host is online or not.
AUTHOR: Daniel Moran
#Requires -Version 2.0