May 2019
Intermediate to advanced
620 pages
21h 41m
English
The Get-ADGroup PowerShell cmdlet is used to get the members attribute. Then, recursively, for each group the membership count is queried. If this count is zero, it means there are no group members; when this is the case, the group is returned.
To make the output readable and sortable, Out-GridView shows the output in a graphical user interface. This part can be omitted to show the results in the PowerShell window, or changed to output on the clipboard or CSV file.
Read now
Unlock full access