BTW, you don’t need a Try/Catch for Test-Connection. If a ping fails, it won’t error when you’re using -Quiet, it’ll just return $False. You use Try/Catch when you’re expecting an error.
↧
BTW, you don’t need a Try/Catch for Test-Connection. If a ping fails, it won’t error when you’re using -Quiet, it’ll just return $False. You use Try/Catch when you’re expecting an error.