Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Powershell – group members & attribs for multiple groups report?

$
0
0

I guess you could do this. I think you need to do abit more work with this really if you want to output the group name – perhaps put the details into a hashtable and then output that?

$group = 'Project_Name'

Get-ADGroupMember -Identity $group | Get-ADUser -Properties name, description, Created, lastlogon, $group | ConvertTo-Csv | out-file C:\Temp\test.csv


Viewing all articles
Browse latest Browse all 13067

Trending Articles