
tu
2021. 7. 20. · You can get a list of open TCP ports and connections on remote computers using PowerShell remoting cmdlets ( Enter-PSSession and Invoke-Command ). Invoke-Command -ComputerName be-dc01 {Get-NetTCPConnection -State Established} The Get-NetTCPConnection cmdlet (as well as Test-NetConnection) may be very useful to track and diagnose network. 2022. 7. 28. · Method 2: CURL Command. Another way to check the internet connection is through the CURL command. The CURL command is used to download, upload, or transfer the data over the network from or to the server. It supports various protocols, and we can use it to check the internet connectivity by connecting to linuxhint.com and fetch the headers. 2022. 5. 31. · If so, it does whatever you're trying to script. I did not hard code the IPaddress you want to check for basic ICMP connectivity for, but instead added it as a command line argument. Or you can just hard-code it. You may want to double check the syntax as I did not test this at all. EDIT: Changed ping value to 11 to reflect a real 10 second delay.