locked
Remove contact from a group RRS feed

  • Question

  • Hello,

    I have a contact called fax8000 which belong to a group also called fax8000.

    How do I user Powershell to remove this user fax8000  from group fax8000?  

    I used below but failed (no error but does not work):

    remove-qadgroupmember -identity fax8000 -member fax8000 

    Thank you.

    Thursday, February 8, 2018 8:44 PM

Answers

  • Remove-ADGroupMember -Identity "GroupNameDN"  -member "UserDN" -Confirm $false
    Try useing DN of group and user insted on shortnames.

    Best Regards,
    Łukasz Antoniak


    Please do take a moment to "Vote as Helpful" and/or "Mark as Answer", wherever applicable. Thanks!

    • Marked as answer by phathuynh27 Thursday, February 8, 2018 9:23 PM
    Thursday, February 8, 2018 9:04 PM

All replies

  • For Quest CmdLets post in the Quest forum.  This is a Microsoft forum.

    Since Quest Active Roles is no longer supported you should be using the AD CmdLets.

    My guess is that the member name must be a distinguished name.


    \_(ツ)_/


    • Edited by jrv Thursday, February 8, 2018 8:57 PM
    Thursday, February 8, 2018 8:56 PM
  • Remove-ADGroupMember -Identity "GroupNameDN"  -member "UserDN" -Confirm $false
    Try useing DN of group and user insted on shortnames.

    Best Regards,
    Łukasz Antoniak


    Please do take a moment to "Vote as Helpful" and/or "Mark as Answer", wherever applicable. Thanks!

    • Marked as answer by phathuynh27 Thursday, February 8, 2018 9:23 PM
    Thursday, February 8, 2018 9:04 PM