Warning: Undefined array key "rcommentid" in /var/www/busted.dk/public_html/blog/wp-content/plugins/wp-recaptcha/recaptcha.php on line 348

Warning: Undefined array key "rchash" in /var/www/busted.dk/public_html/blog/wp-content/plugins/wp-recaptcha/recaptcha.php on line 349
List all users of a group - Peter Busted

List all users of a group

List all users in a group:
$Groups = Get-ADGroup -filter {Name -like “GROUP NAME” } | Select-Object Name
ForEach ($Group in $Groups) {Get-ADGroupMember -identity $($group.name) -recursive | Get-ADUser -Properties name, mail | Select-Object name, mail}

This will show their name and mail address.