Sometimes you just want things to be simple. Take today…a random lync message asked me to get a list of user accounts in an AD Group. Mind you, I’m the SCOM guy not the AD guy. Anyway, I thought this would be a pretty straightforward answer and here it was.
Get-ADGroupMember -Identity “MY AD GROUP” -Recursive
The recursive switch at the end would just allow enumeration of nested group members.
Sadly the request came back with this error:
Get-ADGroupMember : Unable to find a default server with Active Directory Web Services running.