Remove-ADGroupMember
CautionRemove group members
Remove-ADGroupMember -Identity <grp> -Members <user>
Removes members — the revocation half of access management. Mind privileged groups.
Examples
Remove-ADGroupMember -Identity 'VPN-Users' -Members taro.yamadaRevoke VPN access
Syntax
Remove-ADGroupMember -Identity g -Members u1,u2 [-Confirm:$false]
Before you run it
Confirm the access impact first.
Related commands
- Add-ADGroupMemberAdd/remove member
- Get-ADGroupMemberGroup membership
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store