<?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>cat brain.stuff &#62; wordpress &#187; distinguished name</title>
	<atom:link href="http://famvdploeg.com/blog/tag/distinguished-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://famvdploeg.com/blog</link>
	<description>A simple look on things</description>
	<lastBuildDate>Wed, 21 Mar 2012 19:47:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Getting user GUID from Active Directory.</title>
		<link>http://famvdploeg.com/blog/2010/06/getting-user-guid-from-active-directory/</link>
		<comments>http://famvdploeg.com/blog/2010/06/getting-user-guid-from-active-directory/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 09:28:09 +0000</pubDate>
		<dc:creator>Wytze</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[ad]]></category>
		<category><![CDATA[distinguished name]]></category>
		<category><![CDATA[dn]]></category>
		<category><![CDATA[guid]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[vbs]]></category>

		<guid isPermaLink="false">http://famvdploeg.com/blog/?p=168</guid>
		<description><![CDATA[Sometimes you need to get a GUID for an entry in Active Directory. There are several tools available to do this. This is just one example how you could approach this. To go the network where you can search/browse AD. Perform a search and modify the columns you want to view. Look for a Distinguished [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you need to get a GUID for an entry in Active Directory. There are several tools available to do this. This is just one example how you could approach this.</p>
<p>To go the network where you can search/browse AD.<br />
<a href="http://famvdploeg.com/blog/wp-content/uploads/2010/06/active_directory.png"><img class="alignnone size-full wp-image-169" title="active_directory" src="http://famvdploeg.com/blog/wp-content/uploads/2010/06/active_directory.png" alt="" width="543" height="428" /></a></p>
<p>Perform a search and modify the columns you want to view. Look for a Distinguished Name property and add it. We will use it to retrieve the GUID.</p>
<p><a href="http://famvdploeg.com/blog/wp-content/uploads/2010/06/active_directory_21.png"><img class="alignnone size-full wp-image-308" title="active_directory_2" src="http://famvdploeg.com/blog/wp-content/uploads/2010/06/active_directory_21.png" alt="" width="530" height="421" /></a></p>
<p>Create a simple vbs script to retrieve the GUID and write it to a text file.</p>

<div class="wp_syntax"><div class="code"><pre class="vbscript" style="font-family:monospace;">Set objFSO = CreateObject(&quot;Scripting.FileSystemObject&quot;)
ForWriting = 2
Set file = objFSO.OpenTextFile(&quot;C:\Windows\Temp\guid.txt&quot;, ForWriting, true)
&nbsp;
Set sampleUser = GetObject(&quot;LDAP://CN=Wytze,OU=office,DC=example,DC=org&quot;)
file.WriteLine(&quot;User: &quot; &amp;amp; sampleUser.Name &amp;amp; &quot; &quot; &amp;amp; sampleUser.Guid)
&nbsp;
file.Close</pre></div></div>

<p>Done.</p>
]]></content:encoded>
			<wfw:commentRss>http://famvdploeg.com/blog/2010/06/getting-user-guid-from-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

