Link to home
Start Free TrialLog in
Avatar of shoris
shoris

asked on

Ldifde Command Error

Command Below is what I run:

ldifde –f "C:\Nandhini.txt –d “CN=Nandhini, OU=Users, DC=contoso,DC=com”

I get this error message.
Invalid Parameter: Bad argument '-f'

Example: Macro expansion in DNs
    ldifde -f export.ldf -c "#configurationNamingContext" "cn=configuration,dc=x"
    ldifde -i -f import.ldf -c "cn=configuration,dc=x" "#configurationNamingContext"

No log files were written.  In order to generate a log file, please
specify the log file path via the -j option.

Can someone help me get this output file of the user.txt.
Avatar of Don Thomson
Don Thomson
Flag of Canada image

Try

ldifde –f C:\Nandhini.txt –d “CN=Nandhini, OU=Users, DC=contoso,DC=com”

You can never have three "  in an expression - they have to be in matched pairs and are only used when the file name has a space in it  such as "C:\my Documents\..."
If the file name doesn't have a space the quotes are unnecessary
Avatar of shoris
shoris

ASKER

tried that I still get that error above grrr.

No log files were written.  In order to generate a log file, please
specify the log file path via the -j option
Are you sure about your hyphen ? It seems more like a dash.
There is a little difference between –f  and -f
ASKER CERTIFIED SOLUTION
Avatar of Bxoz
Bxoz
Flag of France image

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
I noticed the same thing as Bxoz did with the hyphen vs dash.  The longer hyphen shows as hex 96 and the dash as hex 2d in a hex editor.  In a web page it is converted to  –f   whereas the short dash  -f  is just displayed literally.   It's more apparent in large font in a screenshot.
User generated image
Hello Shoris,

Can you give us any feelback ?
Avatar of shoris

ASKER

it worked.. sorry for the late response.. thank you so much. I had been travelling.