Forum Discussion
Nitts
Mar 02, 2021Copper Contributor
PowerShell Connection on Different Domain
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 P...
JaksaSkelin
Mar 04, 2021Copper Contributor
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
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