The TEAMS/phone administrator was complaining about the latest in our port security measures as we replaced all our LAN switches. We wanted to create a report showing the interface configurations for all the ports we labeled as having a phone, WAP, or a small switch. [The small switches are used by KASTLE, our physical security systems provider, hence the label in the script.]
The PowerShell makes a SWQL query to find all the interfaces with the descriptions we are interested in, uses the SWIS verb, GetInterfaceConfigSnippets, to get the Config Snippet, and outputs a HTML file using a grid CSS. I am always looking to do things better as I am NOT a paid programmer, never really have been, but I do it all the time.
