Link to home
Start Free TrialLog in
Avatar of gaddam01
gaddam01

asked on

Group Members

Hi,

We are using Windows server 2003 domain controllers. I have a group named GLGUKUsers with Distinguished name CN=GLGUKUsers,OU=LGUK,OU=GL,OU=Groups,DC=domain name. I have another group GLGUKGpoULogonLGUKUsers with Distinguished name CN=GLGUKGpoULogonLGUKUsers,OU=LGUK,OU=GL,OU=Groups,DC=domain name.

I need copy all the users form the group GLGUKUsers to GLGUKGpoULogonLGUKUsers. Is there any script or command to this for me?

Becuase the group contains around 1500 users and I need copy all the users to the new group.

Please suggest me how to do this.

Thanks in Advance.
Avatar of Stelian Stan
Stelian Stan
Flag of Canada image

You can use powershell and the Quest AD cmdlets.

get-qadgroupmember GLGUKUsers -sizelimit 0 | Foreach { add-qadgroupmember GLGUKGpoULogonLGUKUsers $_}
Avatar of gaddam01
gaddam01

ASKER

Thanks for the reply. But I don't have any knowledge on Power shell. Please provide any VB Script or any Built in Commands in AD itself.
ASKER CERTIFIED SOLUTION
Avatar of Stelian Stan
Stelian Stan
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Take a look at what clonyxlro posted. that uses the DS commands. But I would suggest you start looking at powershell.