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

csehz used Ask the Experts™
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

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT Infrastructure Architect
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
Joseph MoodyBlogger and wearer of all hats.

If you can't use the AD module, you can use the Quest AD cmdlets on any server/client.
csehzIT consultant


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

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial