Hi All,
I am new to powershell. I am trying my best to come up with a script to get membership details of a subgroup along with the account details. My head is spinning all around to get this. Could anyone of you help me with this. Below is what i have right now.
Get-ADGroupMember “-app-InsuranceRefunds-UK” -Identity $($group.name) -Recursive | %{Get-ADUser $_ -properties displayname,Enabled} | Select samaccountname,displayname | Export-Csv C:\Temp\allthegroups.csv
Group------>members details ( there are groups in this as well)
subgroups that are part of member of the primary group------member details of this subgroup and so on
with the account status, whether it is enabled or disabled.
Thank You
Jeevan