Mar 23, 2018 · This script provides the group membership details based on user name. You can include all user names in an input file (Users.csv) in the following format: Script uses Get-ADUser cmdlet to validate the user first then get the user membership using the “memberof” properties. Output/report will be in the GMReport_$Cdate.csv file.