[Last Call] Learn how to a build a cloud-first strategyRegister Now


PowerShell - 'Remove-ADGroupMember' is not recognized as the name of a cmdlet

Posted on 2014-08-21
Medium Priority
Last Modified: 2014-08-21
Dear Experts,

Basically I am searching how to remove a user from a group using only PowerShell.

For that the Remove-ADGroupMember should be used theoretically, but the issue that our PowerShell gives the below error message for it:

Error message
Apparently that needs some additional installation, but being not in that position no chance for that, could you please advice what alternatives are or how to make this command enable

Question by:csehz
LVL 40

Accepted Solution

Subsun earned 2000 total points
ID: 40276340
Are you trying to run the command from Domain controller? You need to have windows 2008 R2 or above domain controller to have PowerShell active directory module. If yes.. then type following command prior to Remove-ADGroupMember command.

Import-Module Activedirectory

Open in new window

For Remove-ADGroupMember Syntax..
Ref : http://technet.microsoft.com/en-us/library/ee617242.aspx
LVL 22

Expert Comment

by:Joseph Moody
ID: 40276406
If you can't use the AD module, you can use the Quest AD cmdlets on any server/client.

Author Closing Comment

ID: 40278305
Thanks very much that is perfect, I learnt something very basic from you

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
If you have come across a situation where you need to find some EDB mailbox recovery techniques, then here you will find the same. In this article, we will take you through three techniques using which you will be able to perform EDB recovery. You …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Loops Section Overview
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question