Hi everyone, I'm new-ish to PowerShell, but have been more recently made aware of it's prowess so i'm going to start using it more! ;)
Let me set the scene; our AD structure is arranged so that users who use App-V'd (v4.6) applications are in global security groups named appropriately, so for example the Firefox group is called "App V Firefox".
I need to get a CSV report of all App V users, and the App V groups they are in... it's proving quite frustrating so far. The command I'm using (basic) is:
Get-ADGroupMember -identity "App V Firefox" | Select name | Export-Csv -Path c:\Temp\Groupmembers.csv
...which only gives me the names of people in that group. What I would like ideally is the "App V Firefox" bit to be a wildcard for ALL App V groups (along the lines of "App V*"), the person's Username rather than their actual name and in the CSV next to the username, all the groups they are members of (App V groups only preferably). Is this possible?
Thanks in advance all!