PS C:\Users\SivaMulpuru> Test-Connection google.com -Quiet -Count 1
True
PS C:\Users\SivaMulpuru> Test-Connection google.local -Quiet -Count 1
False
Good practice to check for the host’s state before making a connection.
My Contribution / Reference / Spare Time
PS C:\Users\SivaMulpuru> Test-Connection google.com -Quiet -Count 1
True
PS C:\Users\SivaMulpuru> Test-Connection google.local -Quiet -Count 1
False
Good practice to check for the host’s state before making a connection.