I need to get the member of groups, When i see the properties of a group in AD, there are two tabs, one is Members and other one is MemberOf. I want the information their in MemberOf tab for a particular group.
The below codes works but it gives me a list of members. Not the MemberOf information.
$group = 'kozos' $Domain = 'kozos.com' import-module activedirectory $groupmember =get-adgroupmember $group -Server $Domain $groupmember