<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Finding Duplicate Names in Active Directory</title>
	<atom:link href="http://blog.scottlowe.org/2006/08/17/finding-duplicate-names-in-active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.scottlowe.org/2006/08/17/finding-duplicate-names-in-active-directory/</link>
	<description>The weblog of an IT pro specializing in virtualization, storage, and servers</description>
	<pubDate>Thu, 20 Nov 2008 16:24:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: slowe</title>
		<link>http://blog.scottlowe.org/2006/08/17/finding-duplicate-names-in-active-directory/#comment-1822</link>
		<dc:creator>slowe</dc:creator>
		<pubDate>Sat, 26 Aug 2006 01:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=323#comment-1822</guid>
		<description>Jerome,

Log Parser is a wonderful tool.  Every time I use it, I find new ways to use it.  Enjoy!</description>
		<content:encoded><![CDATA[<p>Jerome,</p>
<p>Log Parser is a wonderful tool.  Every time I use it, I find new ways to use it.  Enjoy!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerome Gicquel</title>
		<link>http://blog.scottlowe.org/2006/08/17/finding-duplicate-names-in-active-directory/#comment-1812</link>
		<dc:creator>Jerome Gicquel</dc:creator>
		<pubDate>Fri, 25 Aug 2006 14:48:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.scottlowe.org/?p=323#comment-1812</guid>
		<description>Thanks for this article!
Thanks to you, I discovered the wondeful tool that is LogParser.

Now playing a bit around with those tools, you can get even more interesting information than what is just written here.

For example this is what I did:
1. Use CSVDE, instead of dsquery to select and export more than one field from the AD
[i]csvde -d "DC=example,DC=com" -r "(&#124;(objectCategory=user)(objectCategory=contact))" -l cn,sn,givenName,showInAddressBook,proxyAddresses -f exp_example1.txt[/i]
=&#62; In that example I only took the object of type [b]user[/b] and [b]contact[/b], plus I filter the attributes to be exported.

2. Use LogParser to give you "The combination surname  + name which are are at least doubled in your AD", i.e. the user/ contacts which have the same name.
[i]LogParser -i:CSV -o:CSV "SELECT sn, givenName, COUNT(*) INTO duplicate_cn.txt FROM exp_example1.txt WHERE showInAddressBook is not null AND distinguishedName NOT LIKE '%OU=Marketing,DC=example,DC=com' GROUP BY sn,givenName HAVING COUNT(*) &#62; 1"[/i]
=&#62; Here I am filtering out the objects which have the option "Hide from Exchange Addres list", as well as those which are contained in the OU "Marketing".
=&#62; The result goes into the file "duplicate_cn.txt" with the number of occurences. Please pay attention that this is not necessarily wrong to have some as you may have in big organisation people with exactly the same name.

Cheers,
Jerome</description>
		<content:encoded><![CDATA[<p>Thanks for this article!<br />
Thanks to you, I discovered the wondeful tool that is LogParser.</p>
<p>Now playing a bit around with those tools, you can get even more interesting information than what is just written here.</p>
<p>For example this is what I did:<br />
1. Use CSVDE, instead of dsquery to select and export more than one field from the AD<br />
[i]csvde -d &#8220;DC=example,DC=com&#8221; -r &#8220;(|(objectCategory=user)(objectCategory=contact))&#8221; -l cn,sn,givenName,showInAddressBook,proxyAddresses -f exp_example1.txt[/i]<br />
=&gt; In that example I only took the object of type [b]user[/b] and [b]contact[/b], plus I filter the attributes to be exported.</p>
<p>2. Use LogParser to give you &#8220;The combination surname  + name which are are at least doubled in your AD&#8221;, i.e. the user/ contacts which have the same name.<br />
[i]LogParser -i:CSV -o:CSV &#8220;SELECT sn, givenName, COUNT(*) INTO duplicate_cn.txt FROM exp_example1.txt WHERE showInAddressBook is not null AND distinguishedName NOT LIKE &#8216;%OU=Marketing,DC=example,DC=com&#8217; GROUP BY sn,givenName HAVING COUNT(*) &gt; 1&#8243;[/i]<br />
=&gt; Here I am filtering out the objects which have the option &#8220;Hide from Exchange Addres list&#8221;, as well as those which are contained in the OU &#8220;Marketing&#8221;.<br />
=&gt; The result goes into the file &#8220;duplicate_cn.txt&#8221; with the number of occurences. Please pay attention that this is not necessarily wrong to have some as you may have in big organisation people with exactly the same name.</p>
<p>Cheers,<br />
Jerome</p>
]]></content:encoded>
	</item>
</channel>
</rss>
