<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: PowerShell Script: Retrieving Distinguished name (DN) from A Fully Qualified Domain Name (FQDN)</title>
	<atom:link href="http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/feed/" rel="self" type="application/rss+xml" />
	<link>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/</link>
	<description>Business and Information Technology Tangents is dedicated to providing quality content while informing the world about technology.</description>
	<lastBuildDate>Wed, 04 Jan 2012 17:37:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Marketta Castellano</title>
		<link>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comment-595</link>
		<dc:creator><![CDATA[Marketta Castellano]]></dc:creator>
		<pubDate>Sun, 11 Sep 2011 23:36:11 +0000</pubDate>
		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comment-595</guid>
		<description><![CDATA[This weblog is fantastic. There is generally all of the ideal information in the tips of my fingers. Many thanks and keep up the beneficial work!]]></description>
		<content:encoded><![CDATA[<p>This weblog is fantastic. There is generally all of the ideal information in the tips of my fingers. Many thanks and keep up the beneficial work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brentblawat</title>
		<link>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comment-194</link>
		<dc:creator><![CDATA[brentblawat]]></dc:creator>
		<pubDate>Tue, 23 Feb 2010 05:31:23 +0000</pubDate>
		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comment-194</guid>
		<description><![CDATA[Mark,
I would like to state -- your post provided me a stepping stone for a xml parsing solution (article to come) which I required in my production environment. I appreciate your blog as it has a wealth of information for PowerShell scripting. I often quickly write snippets of code and don&#039;t really pay attention to the optimization of the code. That&#039;s why we have communities, I guess. :)

Also to note, My final points in the &quot;differences section&quot; were more picky than anything. You are absolutely correct that the processing power required for the loop would be minimal. 

One last item, the Fully Qualified Domain Name of the current domain can be returned quickly by using:
[String]$FQDN =  [System.DirectoryServices.ActiveDirectory.Domain]::getCurrentDomain()

As with the Distinguished Name of the current domain with:
$root = [ADSI]&#039;&#039;
$CurrentDN = $root.DistinguishedName

When I found these out -- my beautiful FQDN to DN converter was useless and I wanted to cry. :)

Thanks for taking the time to review and comment!!

- Brent]]></description>
		<content:encoded><![CDATA[<p>Mark,<br />
I would like to state &#8212; your post provided me a stepping stone for a xml parsing solution (article to come) which I required in my production environment. I appreciate your blog as it has a wealth of information for PowerShell scripting. I often quickly write snippets of code and don&#8217;t really pay attention to the optimization of the code. That&#8217;s why we have communities, I guess. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Also to note, My final points in the &#8220;differences section&#8221; were more picky than anything. You are absolutely correct that the processing power required for the loop would be minimal. </p>
<p>One last item, the Fully Qualified Domain Name of the current domain can be returned quickly by using:<br />
[String]$FQDN =  [System.DirectoryServices.ActiveDirectory.Domain]::getCurrentDomain()</p>
<p>As with the Distinguished Name of the current domain with:<br />
$root = [ADSI]&#8221;<br />
$CurrentDN = $root.DistinguishedName</p>
<p>When I found these out &#8212; my beautiful FQDN to DN converter was useless and I wanted to cry. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks for taking the time to review and comment!!</p>
<p>- Brent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark A. Weaver</title>
		<link>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comment-193</link>
		<dc:creator><![CDATA[Mark A. Weaver]]></dc:creator>
		<pubDate>Tue, 23 Feb 2010 00:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comment-193</guid>
		<description><![CDATA[I would agree, I should revisit my variables for this function.  

During the development process, I shifted mid-stream and didn&#039;t go back to rename them.  

I didn&#039;t write &quot;optimized&quot; code since the number of iterations needed to go through an FQDN is relatively small.  The added overhead of assigning the $Separator variable inside the for loop is minimal, at best.  You are correct, though, that moving it outside of the loop is more efficient.

I also tend to explicitly define the input variables (parameters) to my functions.

In short, a very good post and I appreciate the feedback.  I will probably take your suggestion regarding the inaccurate variable names.

Thanks!
 -- Mark]]></description>
		<content:encoded><![CDATA[<p>I would agree, I should revisit my variables for this function.  </p>
<p>During the development process, I shifted mid-stream and didn&#8217;t go back to rename them.  </p>
<p>I didn&#8217;t write &#8220;optimized&#8221; code since the number of iterations needed to go through an FQDN is relatively small.  The added overhead of assigning the $Separator variable inside the for loop is minimal, at best.  You are correct, though, that moving it outside of the loop is more efficient.</p>
<p>I also tend to explicitly define the input variables (parameters) to my functions.</p>
<p>In short, a very good post and I appreciate the feedback.  I will probably take your suggestion regarding the inaccurate variable names.</p>
<p>Thanks!<br />
 &#8212; Mark</p>
]]></content:encoded>
	</item>
</channel>
</rss>

