
<?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/"
		>
<channel>
	<title>Comments on: Converting a GUID string to octet string</title>
	<atom:link href="http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string/feed" rel="self" type="application/rss+xml" />
	<link>http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string</link>
	<description>Adam Bell on Deployment, Automation, PowerShell et al</description>
	<lastBuildDate>Thu, 25 Feb 2010 23:14:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Adam Bell</title>
		<link>http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string/comment-page-1#comment-1413</link>
		<dc:creator>Adam Bell</dc:creator>
		<pubDate>Wed, 09 Sep 2009 03:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string#comment-1413</guid>
		<description>Hey Kirk.

I like it. Thanks for that. I still find a lot of the time my brain is still wired to think in VBScript. It&#039;s getting there slowly :s

Cheers,
Adam</description>
		<content:encoded><![CDATA[<p>Hey Kirk.</p>
<p>I like it. Thanks for that. I still find a lot of the time my brain is still wired to think in VBScript. It&#8217;s getting there slowly :s</p>
<p>Cheers,<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Poshoholic</title>
		<link>http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string/comment-page-1#comment-1412</link>
		<dc:creator>Poshoholic</dc:creator>
		<pubDate>Wed, 09 Sep 2009 02:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string#comment-1412</guid>
		<description>Hi Adam,

I just came across this old post while looking for a solution for this.  I wasn&#039;t totally satisfied with this because I didn&#039;t want to have to write a custom function.  A little more digging and I discovered this way to convert GUIDs:

[System.String]::Join(&#039;&#039;,($guid.ToByteArray() &#124; ForEach-Object {$_.ToString(&#039;x2&#039;)}))

Just sharing in case you want another way to do this that doesn&#039;t require the ReverseBytes function.

Kirk out.</description>
		<content:encoded><![CDATA[<p>Hi Adam,</p>
<p>I just came across this old post while looking for a solution for this.  I wasn&#8217;t totally satisfied with this because I didn&#8217;t want to have to write a custom function.  A little more digging and I discovered this way to convert GUIDs:</p>
<p>[System.String]::Join(&#8221;,($guid.ToByteArray() | ForEach-Object {$_.ToString(&#8216;x2&#8242;)}))</p>
<p>Just sharing in case you want another way to do this that doesn&#8217;t require the ReverseBytes function.</p>
<p>Kirk out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Bell</title>
		<link>http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string/comment-page-1#comment-1321</link>
		<dc:creator>Adam Bell</dc:creator>
		<pubDate>Sat, 01 Aug 2009 09:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string#comment-1321</guid>
		<description>Hi Craig,

Excellent point. I wrote this post some time ago, and reading back I see that it isn&#039;t as clear as I thought it was.

Thanks for the feedback, and I&#039;ll edit the post shortly to be much clearer :-)

Cheers,
Adam</description>
		<content:encoded><![CDATA[<p>Hi Craig,</p>
<p>Excellent point. I wrote this post some time ago, and reading back I see that it isn&#8217;t as clear as I thought it was.</p>
<p>Thanks for the feedback, and I&#8217;ll edit the post shortly to be much clearer :-)</p>
<p>Cheers,<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string/comment-page-1#comment-1317</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Fri, 31 Jul 2009 17:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.leadfollowmove.com/archives/powershell/converting-a-guid-string-to-octet-string#comment-1317</guid>
		<description>Assuming 8-bit bytes, then the first 3 bytes would be 7147a8.  I think step 2 would be better stated as:

Take the first three sub-strings and swap their bytes (octets) about the mid-point of the sub-string.</description>
		<content:encoded><![CDATA[<p>Assuming 8-bit bytes, then the first 3 bytes would be 7147a8.  I think step 2 would be better stated as:</p>
<p>Take the first three sub-strings and swap their bytes (octets) about the mid-point of the sub-string.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

