$group = Get-AdGroup "Users"
Get-ADUser -Filter {MemberOf -recursivematch $group.DistinguishedName} | select name,samaccountname
$group = Get-AdGroup "Users"
Get-ADUser -Filter {MemberOf -recursivematch $group.DistinguishedName} | select name,samaccountname