ForEach ($Group in (Get-Content c:\text.txt)) { Get-ADGroupMember $Group | Select @{Label="Group";Expression={$Group.Name}},Name,SamAccountName }
I have the above piece of powershell code which displays Group,name and samaccountname in the w
I have the above piece of powershell code which displays Group,name and samaccountname in the w