I have put together a little script that will list all users in an OU as well as other info
Get-ADUser -Filter * -SearchBase "ou=Users,ou=XX,ou=XX,DC=XX,dc=XX" -Properties GivenName, Surname,Department,Title,Description,Company,MemberOf |
Select-Object GivenName,SurName,Department,Title,Description,Company,MemberOf |Format-List
The issue is when it outputs the info the MemperOF is giving me 3 lines and ends with ...}
it is not returning all of the memberships I do want both the Groups and Distribution lists so this would be great if it only listed all of them. I am hoping i am just missing something simple. Any help would be greatly appreciated.
Data's all there Jim, what you're seeing is PowerShell truncating the output so it'll fit on the screen. I created this script which might give you the information you want:
Hi Martin, this works like a charm. Thanks for writing this up. Thanks.
Powered by IDERA