Private/Test-specInternetConnectivity.ps1
function Test-specInternetConnectivity { # returns true if the internet is accessible, otherwise returns false param ( [string]$URL = 'www.google.com' ) $result = Test-Connection -ComputerName $URL -Count 1 -Quiet $result } |