Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am running the following command in an attempt to export all of the groups from my domain.

ldifde -f export_Groups_NO_Members.ldf -s XXX -d "dc=XXX,dc=XXX,dc=XXX" -p subtree –r "(&(ObjectCategory=group)(objectclass=group)(name=*))" -l "cn,name,sAMAccountName,grouptype,objectclass" -j c:\

When I run this, I get the error Invalid Parameter: Bad argument '-r', but I am almost positive that the syntax on the LDAP filter is correct. Can someone see what is wrong here?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

That '-r' is not a hyphen. It is an "em dash". Perhaps you copied and pasted that from Word/Outlook that auto-corrected your hyphen.

share|improve this answer
Good catch..... –  Ryan Ries Jan 16 '13 at 20:47
Yes Greg. Very good catch. Now I feel silly. Thanks so much! –  TonyD Jan 17 '13 at 15:15
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.