When we do cleanup activity in Ad,we might wanted to check if any empty groups exist's.How to get the list of empty groups in Ad ?
We can get the list easily with help of Active directory power shell .Below is the one-liner command to pull the information
Get-ADGroup -Filter * -Properties Members | where {-not $_.members} | select Name | Export-Csv C:\ADemptygroupLIST.csv –NoTypeInformation
Regards
Bijesh
We can get the list easily with help of Active directory power shell .Below is the one-liner command to pull the information
Get-ADGroup -Filter * -Properties Members | where {-not $_.members} | select Name | Export-Csv C:\ADemptygroupLIST.csv –NoTypeInformation
Bijesh