<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cogniza &#187; ADSI</title>
	<atom:link href="http://cogniza.com/wordpress/tag/adsi/feed/" rel="self" type="application/rss+xml" />
	<link>http://cogniza.com/wordpress</link>
	<description>Business-Intelligence Specialists</description>
	<lastBuildDate>Sat, 30 Apr 2011 13:22:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Visual Basic: Convert a Windows AD account name to a &#039;real&#039; name.</title>
		<link>http://cogniza.com/wordpress/2006/06/14/vb/</link>
		<comments>http://cogniza.com/wordpress/2006/06/14/vb/#comments</comments>
		<pubDate>Wed, 14 Jun 2006 13:50:24 +0000</pubDate>
		<dc:creator>Craig Buchanan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[ADSI]]></category>
		<category><![CDATA[Windows AD]]></category>

		<guid isPermaLink="false">http://www.cogniza.com/blog/?p=81</guid>
		<description><![CDATA[Convert a Windows AD account name to the individual's actual name, using ADSI.]]></description>
			<content:encoded><![CDATA[<p>Convert a Windows AD account name to the individual&#8217;s actual name, using ADSI.</p>
<p><span id="more-81"></span></p>
<h2>Step 1: Add Reference</h2>
<p>Add a reference to &#8216;Active DS Type Library&#8217; to the project.</p>
<h2>Step 2: Add Function</h2>
<p>Add the following text to module:</p>
<p><code>Public Function GetFullName(DomainName As String, UserName As String) As String<br />
Dim User As IADsUser<br />
Set User = GetObject("WinNT://" &amp; DomainName &amp; "/" &amp; UserName &amp; ",user")<br />
GetFullName = User.FullName<br />
Set User = Nothing<br />
End Function<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://cogniza.com/wordpress/2006/06/14/vb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

