PowerShell Connection on Different Domain

%3CLINGO-SUB%20id%3D%22lingo-sub-2176838%22%20slang%3D%22en-US%22%3EPowerShell%20Connection%20on%20Different%20Domain%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176838%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Team%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20help%20with%20the%20script%20to%20remove%20Multiple%20Users%20from%20a%20Group%20on%20Different%20Domain%20using%20PowerShell.%20We%20have%20two%20domains%20however%2C%20my%20machine%20is%20on%20another%20domain.%20How%20can%20i%20leverage%20PowerShell%20Script%20to%20remove%20bulk%20users%20in%20a%20Group%20on%20a%20different%20domain.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20Advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2176838%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EWindows%20PowerShell%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

Hi Guys,

 

I need help with the script to remove Multiple Users from a Group on Different Domain using PowerShell. We have two domains however, my machine is on another domain. How can i leverage PowerShell Script to remove bulk users in a Group on a different domain.

 

Thanks in Advance.

1 Reply
Hi,
you can remove the users with the Remove-ADGroupMember command with -Server parameter.
Example:
Remove-ADGroupMember -Identity "myGroup" -Members JohnDoe,JaneDoe -Server DC1.2ndDomain
Regards