Hello.
Iam using this powershell command to list the users in a ad group
Get-ADGroupMember -Identity "Group name" | foreach-object { Write-Host $_.SamAccountName }
and it seems to work just fine.
Here is the problem, i have a group that had no members, i added some members to that group and then i did run this command but it still does not show the users, if i run it on groups that already have members then it list the members.
Does it for some reason takes time before it will show up after that i added users?
Iam running this powershell on the domain controller.