title: VBS Script to Check Port Availability in Windows
body: <p>I am trying to check preconditions for a certain piece of software.  I have a set of scripts that goes through and checks for things such as disk space, memory availability, etc.</p>
  
  <p>I need to create a script that can check if certain ports are open and accessible.  I am using the WMI to check other network configuration items, but cannot find any references to checking port availability.</p>
  
  <p>Anyone have any ideas where I can find a WMI construct to let me view and manage ports or any other ideas for how to structure a new script to check port availability?</p>