Following Yesterday’s post about managing Users using GET-ADUSER cmdlet today I’ll show you how to manage group members using Active Directory PowerShell Module.
In the cmdlet below I’ll show you how I remove a user name Roland from my Nano Server Admins group.
Remove-adgroupmember "nano Admins" "ronald"
I can also remove multiple users from a group using:
Remove-adgroupmember "nano Admins" "tonyk", ""ronald"