Options
Find groups with no members
I need to clean up unused groups in AD.
Can I use DSQuery to display groups with no members?
Or is there a s script that will show that last time the group was used?
Can I use DSQuery to display groups with no members?
Or is there a s script that will show that last time the group was used?
Comments
-
Optionsaordal Member Posts: 372personally I use powergui. It powershell in a GUI.
download from here PowerGUI.org - Free Windows Powershell Community
make sure you install the AD powerpak (its part of the install, just follow directions)
after its installed launch it, expand AD, Expand Groups, click Empty Groups.
i would paste the powershell code but i'm lazy, so there you have it -
OptionsHyper-Me Banned Posts: 2,059quest AD powershell cmdlets.
get-qadgroup -empty True
| remove-qadobject to delete them.