Creating a Simplistic GUI Interface with Out-GridView

A couple of weeks ago I noticed a post in the forums at PowerShell.org where a question was asked about selecting a group of servers in Server Manager and running a PowerShell script against that selection of machines. While my solution doesn’t accomplish exactly what I think they were looking for, it does the next best thing.

First, I added a menu item to Server Manager called MrToolkit (short for Mike Robbins Toolkit) based on a “Customize Tools menu in Server Manager” blog article on the TechNet Server Manager Blog:

gridview-gui1.png

The item I added is a .bat file that contains the following code: