Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DSQUERY + DSGET Question

Status
Not open for further replies.

Molenski

IS-IT--Management
Jan 24, 2002
288
DE
Hi,

Can anyone tell me the correct syntax using DSQUERY and DSGET to output the members of groups in a specific OU along with the name of the group. At the moment I can output all users but not with the group names. This is the syntax I'm using -
dsquery group "ou=ouname,dc=domain,dc=co,dc=uk" -name *HS* | dsget group -members >> "groups.txt

Thanks.

Molenski
As my bessie bud Kev always says - Get involved!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top