Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Get group members from my Root domain

Hi,

I have a Distribution and security group on my root domain.Is there a script in which i can specify the Dc's and OU path to fetch the members of that group.

Regards
Sharath
Avatar of Ron Malmstead
Ron Malmstead
Flag of United States of America image

dsquery group -name "*YOUR GROUPNAME HERE*" | dsget group -members | dsget user -display
Avatar of bsharath

ASKER

I get this.


C:\>dsquery group -name "Chennai_NewJoiners" | dsget group -members | dsget user
 -display
dsget failed:`Target object for this command' is missing.
type dsget /? for help.dsget failed:`Target object for this command' is missing.

type dsget /? for help.
C:\>
ASKER CERTIFIED SOLUTION
Avatar of infernum
infernum

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