Remove Active Directory User From AD Group Using PowerShell

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"

Don’t forget to visit my other Weekly Series like Docker Basics and Office 365 PowerShell.

1 comment

  1. How can a remove multiple users from a group based on an attribute like physicalDeliveryOfficeName for example.

Comments are closed.