I have an assignment in my class that asks me to “Using Get-ADUser, obtain a list of the users added in the previous step. Pipe the output to Export-CliXML. Using the Import-CliXML, display the objects generated from the CliXML file that you just created. In the display, look for the user that was added to multiple groups – you should see reference to this user’s groups.” I created a line that gets me the list of users, but I can’t seem to figure out how to add the groups to it and get it functioning.
This is my current line
Get-ADUser -Filter * -SearchBase “DC=cls,DC=com”|Select name |Export-Clixml -path C:\userlist.xml
I tried adding groups, security groups, membersof, ect in the select category but they come out blank