Test if Microsoft services TCP ports are accessible

In a previous blog post, I showed how to retrieve all the Microsoft Services FQDNs, ports, and IP addresses. It’s nice to know those in secure environments where not everything can go onto the internet, but how can you test if they are accessible? This blog post will show how to test most of these services using PowerShell.