The scripts herein are very powerful and can wreak havoc on a network / Domain if improperly implemented. Use carefully and test thoroughly in a development area before deploying any changes.
PowerShell | Test-NetConnection
# Sets the location and port to scan and reports back detailed network information. Can be used to see if a port is live and what IP address it is answering on.
Test-NetConnection imap.gmail.com -Port 993 -InformationLevel "Detailed"
Test-NetConnection smtp.gmail.com -Port 465 -InformationLevel "Detailed"
