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.
shorisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Don ThomsonCommented:
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
0
shorisAuthor Commented:
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
0
BxozCommented:
Are you sure about your hyphen ? It seems more like a dash.
There is a little difference between –f  and -f
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

BxozCommented:
Can you try to copy/past that i try myself without any issues

ldifde -f c:\Nandhini.txt -d "CN=Nandhini, OU=Users, DC=contoso,DC=com"

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BillDLCommented:
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.
Hex 96 left, hex 2d right
0
BxozCommented:
Hello Shoris,

Can you give us any feelback ?
0
shorisAuthor Commented:
it worked.. sorry for the late response.. thank you so much. I had been travelling.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.