This script retrieves the members of an Active Directory Group and displays it in a GUI, additionally it allows for saving to a CSV file.
To use it, there are two options. Either create a shortcut that will be used to launch the script, or alternatively, open a command line (Powershell or CMD).
For the first option, a shortcut is created and the target is set to:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File GroupMembersSummary.ps1
Additionally I recommend opening the properties of the shortcut, click the tab "Shortcut", click "Advanced", and then check "Run as administrator"
Open either Powershell or CMD, and run the following command from the location of the script:
powershell.exe -ExecutionPolicy Bypass -File GroupMembersSummary.ps1
For this script to work, you must have the Powershell Active Directory Module
installed.
A good guide on how to install the Powershell Active Directory Module can be found HERE