bsharath
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
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
dsquery group -name "*YOUR GROUPNAME HERE*" | dsget group -members | dsget user -display
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:\>
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.