Solved

CSVDE not creating .csv "Unicode value to a non-unicode file"

Posted on 2011-02-16
4
3,963 Views
Last Modified: 2012-05-11
Hello all!

I would like to ask you about CSVDE...

I was using ADMT to migrate some accounts from a domain to a new domain.
In this new domain, I had a task that collected all the attributes from all users inside the domain (that are NOT DISABLED), and exported that to a .csv file. The line executed, was:

CSVDE -f "c:\test.csv" -r "(&(objectCategory=person)(objectClass=user)(!userAccountControl:1.2.840.113556.1.4.803:=2))"

This was working until I've migrated the users with ADMT (using SIDHistory, if it helps...).
It now shows an error:
"Error writing to file. This error happens when the entry cannot be written, it can be caused by writing a Unicode value to a non-unicode file.
An error has occurred in the program"

The CSV file is not generated...
When enabling the log, it appears that the CSVDE stops when reaching the OU that this migrated users were placed...

I saw some users, and found that they are members of groups that have "special characters", such as á é Ç and stuff...
I though that this was originating the error, but I've used the parameter -l "DN, sAMAccountname" to specify only this two fields to be added to the CSV... but I'm still getting the same error...

Any help would be appreciated.

have you all a nice day.
0
Comment
Question by:thiagotietze
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 9

Accepted Solution

by:
Michael Knight earned 500 total points
ID: 34907829
you are correct in your assumption regarding special characters.
I believe the -u parameter is used for non-latin characters, that should keep you in the right charset.
0
 
LVL 6

Author Comment

by:thiagotietze
ID: 34908165
Oh god!!! It worked!!!

Just had no idea about this parameter... I should read more carefully the "help file..." :-D

Thanks, you helped me a lot!
0
 
LVL 6

Author Closing Comment

by:thiagotietze
ID: 34908172
Oh god!!! It worked!!!

Just had no idea about this parameter... I should read more carefully the "help file..." :-D

Thanks, you helped me a lot!
0
 
LVL 9

Expert Comment

by:Michael Knight
ID: 34908480
hah! no prob.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
This process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question