Link to home
Start Free TrialLog in
Avatar of Sid_F
Sid_F

asked on

2003 DC export all groups and all users in those groups to CSV- No Powershell

I don't have powershell on a 2003 DC. I need to export all groups and all users in those groups. Can anyone tell me the command I need to run.
Avatar of Jeffrey Kane - TechSoEasy
Jeffrey Kane - TechSoEasy
Flag of United States of America image

This should do the trick for you:

dsquery group DC=yourdomain,DC=local -name groupname | dsget group -members > groupname.txt

Open in new window

actually, leave off the -name parameter because that would be if you only want a list for a specific group
Avatar of Sid_F
Sid_F

ASKER

Even without removing name I get an error target object for this command is missing

dsquery group DC=mydomain,DC=local -name groupname | dsget group -members > groupname.txt
I also tried
dsquery group DC=mydomain,DC=local -name groupname | dsget group -members >c:\group.txt
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

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
if you just enter "dsquery group" what do you get back?