Forum Discussion
Baron164
Sep 08, 2022Brass Contributor
Need help exporting list of enabled group members
So I have this simple one line that exports the members of a group. Get-ADgroupMember GroupName -Recursive | select Name | Sort-Object -Property Name | export-csv -Path \\domain.local\share...
Sep 09, 2022
Can't imagine that you have so many disabled users 😉 Are the users real AD users or inetOrgPerson objects perhaps? Or from another trusted Domain?
Baron164
Sep 09, 2022Brass Contributor
There's only a handful, it's a very stupid situation to be in but I'm dealing with other systems out of my control and the export needs to omit disabled users. As far as I've seen they are all normal user objects and it's only one domain, no trusts.