<?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/"
	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>Business and Information Technology Tangents</title>
	<atom:link href="http://bittangents.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bittangents.com</link>
	<description>Business and Information Technology Tangents is dedicated to providing quality content while informing the world about technology.</description>
	<lastBuildDate>Tue, 13 Jul 2010 21:23:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='bittangents.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d1a1b7257eb43a08a4e680f999fa35ac?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Business and Information Technology Tangents</title>
		<link>http://bittangents.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://bittangents.com/osd.xml" title="Business and Information Technology Tangents" />
	<atom:link rel='hub' href='http://bittangents.com/?pushpress=hub'/>
		<item>
		<title>Nested User Groups (Groups in Groups) / Built-in Local Groups Issue</title>
		<link>http://bittangents.com/2010/07/13/nested-user-groups-groups-in-groups-built-in-local-groups-issue/</link>
		<comments>http://bittangents.com/2010/07/13/nested-user-groups-groups-in-groups-built-in-local-groups-issue/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 21:19:35 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Server Tangents]]></category>

		<guid isPermaLink="false">https://brentblawat.wordpress.com/2010/07/13/nested-user-groups-groups-in-groups-built-in-local-groups-issue/</guid>
		<description><![CDATA[By: Brenton Blawat “Broken By Design” After hours of conference calls with Microsoft, and multiple tiers of support, we come to the conclusion that Nested Local Groups in Built-in Groups are “broken by design”. What does this really mean? When you nest a Local Group into a Built-in Local Group, the effective permission set for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=486&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p><strong>“Broken By Design”</strong></p>
<p>After hours of conference calls with Microsoft, and multiple tiers of support, we come to the conclusion that Nested Local Groups in Built-in Groups are “broken by design”. What does this really mean? When you nest a Local Group into a Built-in Local Group, the effective permission set for the Users within that Local Group is reduced to <strong>Guest</strong>.<strong> </strong>This remains true unless the Users are specifically added into the Built-in Local Groups, which will result in proper permissions being passed to the Users. </p>
<p>&#160;</p>
<h2>Nesting Issue Explained</h2>
<p><a href="http://brentblawat.files.wordpress.com/2010/07/coregroups_small.jpg"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="coregroups_small" border="0" alt="coregroups_small" src="http://brentblawat.files.wordpress.com/2010/07/coregroups_small_thumb.jpg?w=410&#038;h=297" width="410" height="297" /></a> </p>
<p>Lets take the above graphic, where we created a new local group called ‘Geeks’ which contains users named “Brenton B” and “Jason P”. From there, we added the ‘Geeks’ local to the Built-in ‘Administrators’ local group. From that hierarchy, we should assume any users in the ‘Geeks’ Local Group, should obtain Administrative privileges by traversing through the security pathway. Unfortunately, this is <em>not</em> the case.</p>
<p>Note: This issue is for all of the <strong>Built-in</strong> Groups on the system including, but not limited to, Administrators, Backup Operators, Power Users, and Users. I used the Administrators Group, as it’s easiest to work with.</p>
<p>&#160;</p>
<p><a href="http://brentblawat.files.wordpress.com/2010/07/coregroupserr_fulljpg.jpg"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="coregroupserr_fulljpg" border="0" alt="coregroupserr_fulljpg" src="http://brentblawat.files.wordpress.com/2010/07/coregroupserr_fulljpg_thumb.jpg?w=451&#038;h=323" width="451" height="323" /></a> </p>
<p>The issue has to do with second level security traversing with Built-in Groups. While the first level traversing is a trusted security relationship in the operating system, the second security relationship is not trusted. This means that the ’Geeks’ Local Group object is effectively a member of the ‘Administrators’ Group and it also means that Brenton B. and Jason P. are members of the ‘Geeks’ Local Group. It will not, however, traverse to the second level and grant Brenton B. and Jason P. group membership to Administrators.</p>
<h2>&#160;</h2>
<h2>What About Restricted Groups in Group Policies?</h2>
<p>&#160;</p>
<p><a href="http://brentblawat.files.wordpress.com/2010/07/restrictedlocation.jpg"><img style="border-bottom:0;border-left:0;display:inline;margin-left:0;border-top:0;margin-right:0;border-right:0;" title="RestrictedLocation" border="0" alt="RestrictedLocation" align="left" src="http://brentblawat.files.wordpress.com/2010/07/restrictedlocation_thumb.jpg?w=239&#038;h=223" width="239" height="223" /></a> </p>
<p><a href="http://brentblawat.files.wordpress.com/2010/07/groupadded.jpg"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="groupadded" border="0" alt="groupadded" src="http://brentblawat.files.wordpress.com/2010/07/groupadded_thumb.jpg?w=714&#038;h=77" width="714" height="77" /></a>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>&#160;</p>
<p>This issue unfortunately is also present when you have Restricted Groups. <em>Restricted Groups </em>within Group Policies force group associations to the local groups in the Operating System. While you mandate the ‘TestAdmin’ Group as part of the Built-in Administrators Local Group, the permission lookup occurs on the Windows Operating System; thus the Nested Groups do not traverse.</p>
<h2>Can You Still Add Groups To Built-in Groups?</h2>
<p><a href="http://brentblawat.files.wordpress.com/2010/07/groups.jpg"><img style="display:inline;" title="groups" alt="groups" src="http://brentblawat.files.wordpress.com/2010/07/groups_thumb.jpg?w=425&#038;h=368" width="425" height="368" /></a> </p>
<p>Yes, as shown above! While the GUI of Windows does not provide a method to directly add Groups within Built-in Groups, you can execute two commands that would provide for adding Groups in Groups.</p>
<p>Method 1 – Powershell</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Obtain the Current Computer Name</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> $cmpName = [System.Net.DNS]::GetHostName()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#008000;"># Make the ADSI Call into the Computer</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> $adsiCall = [ADSI] (<span style="color:#006080;">&quot;WinNT://$cmpName,computer&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> <span style="color:#008000;"># Create the worker variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span> $objworker = $adsiCall.Create(<span style="color:#006080;">&quot;group&quot;</span>,<span style="color:#006080;">&quot;Geeks&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span> $objworker.put(<span style="color:#006080;">&quot;description&quot;</span>,<span style="color:#006080;">&quot;Geeks Local Group&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span> <span style="color:#008000;"># Create Object from worker variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span> $objworker.setinfo()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span> <span style="color:#008000;"># Create the Group Association</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span> $adsistring = <span style="color:#006080;">&quot;$cmpName/Administrators,group&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span> <span style="color:#008000;"># Create the worker variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span> $group = [adsi] (<span style="color:#006080;">&quot;WinNT://$adsistring&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span> <span style="color:#008000;"># Add the group</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span> $group.add(<span style="color:#006080;">&quot;WinNT://$cmpName/Geeks&quot;</span>)</pre>
<p><!--CRLF--></div>
</div>
<p>Method 2 – NET Commands in BAT File</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> net localgroup <span style="color:#006080;">&quot;Geeks&quot;</span> /Add</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> net localgroup <span style="color:#006080;">&quot;Administrators&quot;</span> <span style="color:#006080;">&quot;Geeks&quot;</span> /Add</pre>
<p><!--CRLF--></div>
</div>
<p>* The above Methods add the ‘Geeks’ local Group, then add the ‘Geeks’ Local Group to the ‘Administrators’ Group</p>
<h2>&#160;</h2>
<h2>Resolution to the Issue</h2>
<p>I still firmly believe this is a bug, however, Microsoft says it’s by design – an undocumented feature so to say. The following can be performed to resolve the issue:</p>
<p>#1 Add the Users of the Geeks Group directly to the Built-in Administrators Group.</p>
<p>#2 Create a Domain Global Group named ‘Geeks’ and place the Domain Global Group ‘Geeks’ in the Local Administrators Restricted Group.</p>
<p>Supporting documents: According to Microsoft’s knowledge Base articles</p>
<p><a href="http://technet.microsoft.com/en-us/library/ee681621(WS.10).aspx">http://technet.microsoft.com/en-us/library/ee681621(WS.10).aspx</a> … “This is the expected behavior of the <strong>Computer Management</strong> snap-in.”</p>
<p>and</p>
<p><a href="http://support.microsoft.com/kb/974815">http://support.microsoft.com/kb/974815</a> … where we can quote directly “This behavior is by design. Windows does not support the nesting of local groups on domain clients or on workgroup clients.”</p>
<p>&#160;</p>
<p>Let me explain this one a bit more – Microsoft does not have a GOOD reason for why this doesn’t work, however, it is by design and is expected. On a serious note, we were able to get the Local Groups to Accept “Global” and “Domain Local”* active directory groups. While this doesn’t help a stand alone system for nesting of groups, it does provide a work around for authentication.</p>
<p>** Be cautious when adding Domain Local Groups to the system as if you have any forests, or trusts, the security will not traverse through the forest or any trusts. ** </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/486/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/486/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/486/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=486&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/07/13/nested-user-groups-groups-in-groups-built-in-local-groups-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/07/coregroups_small_thumb.jpg" medium="image">
			<media:title type="html">coregroups_small</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/07/coregroupserr_fulljpg_thumb.jpg" medium="image">
			<media:title type="html">coregroupserr_fulljpg</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/07/restrictedlocation_thumb.jpg" medium="image">
			<media:title type="html">RestrictedLocation</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/07/groupadded_thumb.jpg" medium="image">
			<media:title type="html">groupadded</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/07/groups_thumb.jpg" medium="image">
			<media:title type="html">groups</media:title>
		</media:content>
	</item>
		<item>
		<title>Powershell Import-GPO : The Data Is Invalid Fixed</title>
		<link>http://bittangents.com/2010/04/20/powershell-import-gpo-the-data-is-invalid-fixed/</link>
		<comments>http://bittangents.com/2010/04/20/powershell-import-gpo-the-data-is-invalid-fixed/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 20:05:51 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Powershell Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/04/20/powershell-import-gpo-the-data-is-invalid-fixed/</guid>
		<description><![CDATA[By: Brenton Blawat This article is to aid those who are receiving the “Data is Invalid” error message in Powershell on Windows Server 2008 R2. This issue occurs while trying to import policies from one domain into their a different domain using a migration table. This issue has to do with the migration table editor [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=471&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>This article is to aid those who are receiving the “Data is Invalid” error message in Powershell on Windows Server 2008 R2. This issue occurs while trying to import policies from one domain into their a different domain using a migration table. This issue has to do with the migration table editor referring to the “Pre-Windows 2000 Username” to migrate users instead of their Standard Username.</p>
<p><strong>Syntax of Command Used for Error:</strong></p>
<blockquote><p>Import-GPO –BackupID {GUIDGOESHERE} –TargetName “Default_AccountingPolicy” –path “c:\scriptloc\” –MigrationTable “C:\scriptloc\DefaultMig.migtable” –CreateIfNeeded | Out-Null</p>
</blockquote>
<p><strong>Error:</strong></p>
<blockquote><p>“ Import-GPO : The Data is invalid. (Exception from HRESULT: 0x8007000D) “</p>
</blockquote>
<p><strong>Solution:</strong></p>
<p>The issue has to do with creating Users and User Groups without the ‘SAMACCOUNTNAME’ field while coding with Powershell. Windows Server 2008 R2 generates a unique Pre-2000 username starting with ‘$’ and a series of numbers following. When using the ‘-migrationtable’ trigger, it causes import-gpo cmdlet to validate the “destination users” PRIOR to importing the group policy. If it cannot resolve the User or User group, it will cause the ‘’HRESULT error’.</p>
<p>The following lines were added to the Powershell Script for creating a User Group, which corrected this issue:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#039;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Where $objworker was the AD method and $ADobjname was the name of the user / group</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> $objworker.put(<span style="color:#006080;">&quot;sAMAccountName&quot;</span>, <span style="color:#006080;">&quot;$ADobjname&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#039;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> $objworker.SetInfo()</pre>
<p><!--CRLF--></div>
</div>
<p>&#160;</p>
<p>Depending on your network, the <strong>fix </strong>can be done in two ways:</p>
<ol>
<li>Ensure the “Pre-Windows 2000 name” is the same as the “Standard Windows Name” </li>
<li>Correct the Migration Table to Use the Pre-Windows 2000 Names for the ‘Destination’ </li>
</ol>
<p><strong>Simple fix </strong>– just wish that the error would be more like “Errors in Migration Table”. The error message of “The Data Is Invalid “ is useless in my opinion. </p>
<p>Happy Coding!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/471/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/471/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/471/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=471&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/04/20/powershell-import-gpo-the-data-is-invalid-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Script: Encrypting / Decrypting A String &#8211; Function Encrypt-String</title>
		<link>http://bittangents.com/2010/03/20/powershell-script-encrypting-decrypting-a-string-function-encrypt-string/</link>
		<comments>http://bittangents.com/2010/03/20/powershell-script-encrypting-decrypting-a-string-function-encrypt-string/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 15:40:26 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Powershell Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/03/20/powershell-script-encrypting-decrypting-a-string-function-encrypt-string/</guid>
		<description><![CDATA[By: Brenton Blawat The encryption and decryption of strings is essential when creating an enterprise product that has clear text passwords. This function displays how to encrypt and decrypt a string using Powershell using Richard’s code located at http://poshcode.org/116. While I found his code very useful, he didn’t explain the syntax and is why I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=468&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>The encryption and decryption of strings is essential when creating an enterprise product that has clear text passwords. This function displays how to encrypt and decrypt a string using Powershell using Richard’s code located at <a title="http://poshcode.org/116" href="http://poshcode.org/116">http://poshcode.org/116</a>. While I found his code very useful, he didn’t explain the syntax and is why I am reposting this with the proper information. </p>
<p>I also decided to make this into an endless loop for an administrator to use to encrypt multiple passwords in a row. I found this to be useful as I never had to encrypt just one password. </p>
<h2></h2>
<h2>Important for your security!!</h2>
<p>In order to ensure your application is safe from an attacker be certain to perform each of the following:</p>
<p>1.&#160; Change the $salt variable and $init variables. These variables should be at least 8 characters long but should be changed or your application is subject to a brute force attack if someone determines you are using my code!</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">function</span> Encrypt-String($String, $Passphrase, $salt=<span style="color:#006080;">&quot;SaltCrypto&quot;</span>, $init=<span style="color:#006080;">&quot;IV_Password&quot;</span>, [<span style="color:#0000ff;">switch</span>]$arrayOutput)</pre>
<p><!--CRLF--></div>
</div>
<p>2.&#160; Change the Passphrase that is passed into the function. I suggest a 12-18 character Passphrase to prevent the above brute force attack.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> $encrypted = Encrypt-String $string <span style="color:#006080;">&quot;MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></div>
</div>
<p>3.&#160; Be sure to pass the right Passphrase into the function for decryption. If you pass the wrong key into the function, you will not get the correct password returned from the function.</p>
<h2>Function for Encrypting / Decrypting A String in PowerShell</h2>
<p><strong><a href="http://www.brentblawat.com/blog/codesnippets/EncryptDecryptString.PS1" target="_blank">Download PS1 Here</a></strong></p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;height:1839px;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#008000;"># Powershell Allows The Loading of .NET Assemblies</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#008000;"># Load the Security assembly to use with this script </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> [Reflection.Assembly]::LoadWithPartialName(<span style="color:#006080;">&quot;System.Security&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span> <span style="color:#008000;"># This function is to Encrypt A String.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span> <span style="color:#008000;"># $string is the string to encrypt, $passphrase is a second security &quot;password&quot; that has to be passed to decrypt.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span> <span style="color:#008000;"># $salt is used during the generation of the crypto password to prevent password guessing.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span> <span style="color:#008000;"># $init is used to compute the crypto hash -- a checksum of the encryption</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span> <span style="color:#0000ff;">function</span> Encrypt-String($String, $Passphrase, $salt=<span style="color:#006080;">&quot;SaltCrypto&quot;</span>, $init=<span style="color:#006080;">&quot;IV_Password&quot;</span>, [<span style="color:#0000ff;">switch</span>]$arrayOutput)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>     <span style="color:#008000;"># Create a COM Object for RijndaelManaged Cryptography</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>     $r = new-Object System.Security.Cryptography.RijndaelManaged</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>     <span style="color:#008000;"># Convert the Passphrase to UTF8 Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>     $pass = [Text.Encoding]::UTF8.GetBytes($Passphrase)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>     <span style="color:#008000;"># Convert the Salt to UTF Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>     $salt = [Text.Encoding]::UTF8.GetBytes($salt)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>     <span style="color:#008000;"># Create the Encryption Key using the passphrase, salt and SHA1 algorithm at 256 bits</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>     $r.Key = (new-Object Security.Cryptography.PasswordDeriveBytes $pass, $salt, <span style="color:#006080;">&quot;SHA1&quot;</span>, 5).GetBytes(32) <span style="color:#008000;">#256/8</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>     <span style="color:#008000;"># Create the Intersecting Vector Cryptology Hash with the init</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span>     $r.IV = (new-Object Security.Cryptography.SHA1Managed).ComputeHash( [Text.Encoding]::UTF8.GetBytes($init) )[0..15]</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum26">  26:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum27">  27:</span>     <span style="color:#008000;"># Starts the New Encryption using the Key and IV   </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum28">  28:</span>     $c = $r.CreateEncryptor()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum29">  29:</span>     <span style="color:#008000;"># Creates a MemoryStream to do the encryption in</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum30">  30:</span>     $ms = new-Object IO.MemoryStream</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum31">  31:</span>     <span style="color:#008000;"># Creates the new Cryptology Stream --&gt; Outputs to $MS or Memory Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum32">  32:</span>     $cs = new-Object Security.Cryptography.CryptoStream $ms,$c,<span style="color:#006080;">&quot;Write&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum33">  33:</span>     <span style="color:#008000;"># Starts the new Cryptology Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum34">  34:</span>     $sw = new-Object IO.StreamWriter $cs</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum35">  35:</span>     <span style="color:#008000;"># Writes the string in the Cryptology Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum36">  36:</span>     $sw.Write($String)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum37">  37:</span>     <span style="color:#008000;"># Stops the stream writer</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum38">  38:</span>     $sw.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum39">  39:</span>     <span style="color:#008000;"># Stops the Cryptology Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum40">  40:</span>     $cs.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum41">  41:</span>     <span style="color:#008000;"># Stops writing to Memory</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum42">  42:</span>     $ms.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum43">  43:</span>     <span style="color:#008000;"># Clears the IV and HASH from memory to prevent memory read attacks</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum44">  44:</span>     $r.Clear()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum45">  45:</span>     <span style="color:#008000;"># Takes the MemoryStream and puts it to an array</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum46">  46:</span>     [byte[]]$result = $ms.ToArray()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum47">  47:</span>     <span style="color:#008000;"># Converts the array from Base 64 to a string and returns</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum48">  48:</span>     <span style="color:#0000ff;">return</span> [Convert]::ToBase64String($result)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum49">  49:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum50">  50:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum51">  51:</span> <span style="color:#0000ff;">function</span> Decrypt-String($Encrypted, $Passphrase, $salt=<span style="color:#006080;">&quot;SaltCrypto&quot;</span>, $init=<span style="color:#006080;">&quot;IV_Password&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum52">  52:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum53">  53:</span>     <span style="color:#008000;"># If the value in the Encrypted is a string, convert it to Base64</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum54">  54:</span>     <span style="color:#0000ff;">if</span>($Encrypted <span style="color:#cc6633;">-is</span> [string]){</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum55">  55:</span>         $Encrypted = [Convert]::FromBase64String($Encrypted)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum56">  56:</span>        }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum57">  57:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum58">  58:</span>     <span style="color:#008000;"># Create a COM Object for RijndaelManaged Cryptography</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum59">  59:</span>     $r = new-Object System.Security.Cryptography.RijndaelManaged</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum60">  60:</span>     <span style="color:#008000;"># Convert the Passphrase to UTF8 Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum61">  61:</span>     $pass = [Text.Encoding]::UTF8.GetBytes($Passphrase)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum62">  62:</span>     <span style="color:#008000;"># Convert the Salt to UTF Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum63">  63:</span>     $salt = [Text.Encoding]::UTF8.GetBytes($salt)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum64">  64:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum65">  65:</span>     <span style="color:#008000;"># Create the Encryption Key using the passphrase, salt and SHA1 algorithm at 256 bits</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum66">  66:</span>     $r.Key = (new-Object Security.Cryptography.PasswordDeriveBytes $pass, $salt, <span style="color:#006080;">&quot;SHA1&quot;</span>, 5).GetBytes(32) <span style="color:#008000;">#256/8</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum67">  67:</span>     <span style="color:#008000;"># Create the Intersecting Vector Cryptology Hash with the init</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum68">  68:</span>     $r.IV = (new-Object Security.Cryptography.SHA1Managed).ComputeHash( [Text.Encoding]::UTF8.GetBytes($init) )[0..15]</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum69">  69:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum70">  70:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum71">  71:</span>     <span style="color:#008000;"># Create a new Decryptor</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum72">  72:</span>     $d = $r.CreateDecryptor()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum73">  73:</span>     <span style="color:#008000;"># Create a New memory stream with the encrypted value.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum74">  74:</span>     $ms = new-Object IO.MemoryStream @(,$Encrypted)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum75">  75:</span>     <span style="color:#008000;"># Read the new memory stream and read it in the cryptology stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum76">  76:</span>     $cs = new-Object Security.Cryptography.CryptoStream $ms,$d,<span style="color:#006080;">&quot;Read&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum77">  77:</span>     <span style="color:#008000;"># Read the new decrypted stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum78">  78:</span>     $sr = new-Object IO.StreamReader $cs</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum79">  79:</span>     <span style="color:#008000;"># Return from the function the stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum80">  80:</span>     Write-Output $sr.ReadToEnd()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum81">  81:</span>     <span style="color:#008000;"># Stops the stream    </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum82">  82:</span>     $sr.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum83">  83:</span>     <span style="color:#008000;"># Stops the crypology stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum84">  84:</span>     $cs.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum85">  85:</span>     <span style="color:#008000;"># Stops the memory stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum86">  86:</span>     $ms.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum87">  87:</span>     <span style="color:#008000;"># Clears the RijndaelManaged Cryptology IV and Key</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum88">  88:</span>     $r.Clear()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum89">  89:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum90">  90:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum91">  91:</span> <span style="color:#008000;"># This clears the screen of the output from the loading of the assembly.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum92">  92:</span> cls</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum93">  93:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum94">  94:</span> <span style="color:#008000;"># $me will never = 1, so It will run indefinately</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum95">  95:</span> $me = 0</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum96">  96:</span>     write-host <span style="color:#006080;">&quot;To End This Application, Close the Window&quot;</span>    </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum97">  97:</span>     Write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum98">  98:</span> do</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum99">  99:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum100"> 100:</span>     <span style="color:#008000;"># Prompt the user for the password    </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum101"> 101:</span>     $string = read-host <span style="color:#006080;">&quot;Please Enter User Password&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum102"> 102:</span>     <span style="color:#008000;"># Encrypt the string and store it into the $encrypted variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum103"> 103:</span>     $encrypted = Encrypt-String $string <span style="color:#006080;">&quot;MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum104"> 104:</span>     <span style="color:#008000;"># Write result to the screen</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum105"> 105:</span>     write-host <span style="color:#006080;">&quot;Encrypted Password is: $encrypted&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum106"> 106:</span>     write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum107"> 107:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum108"> 108:</span>     write-host <span style="color:#006080;">&quot;Testing Decryption of Password...&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum109"> 109:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum110"> 110:</span>     <span style="color:#008000;"># Decrypts the string and stores the decrypted value in $decrypted</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum111"> 111:</span>     $decrypted = Decrypt-String $encrypted <span style="color:#006080;">&quot;MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum112"> 112:</span>     <span style="color:#008000;"># Writes the decrpted value to the screen</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum113"> 113:</span>     write-host <span style="color:#006080;">&quot;Decrypted Password is: $decrypted&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum114"> 114:</span>     write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum115"> 115:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum116"> 116:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum117"> 117:</span> <span style="color:#0000ff;">while</span> ($me <span style="color:#cc6633;">-ne</span> 1)</pre>
<p><!--CRLF--></div>
</div>
<p><strong>To use this Function: </strong></p>
<p><strong>Start</strong> &gt; <strong>Run </strong>&gt; Type <strong>powershell.exe –noexit c:\location\EncryptDecryptString.ps1</strong> </p>
<p><strong>** When you are done close the window.</strong></p>
<h2>Function for Encrypting Username and Passwords in PowerShell</h2>
<p><strong><a href="http://www.brentblawat.com/blog/codesnippets/EncryptDecryptStringUP.PS1" target="_blank">Download PS1 Here</a></strong></p>
<p>You will notice that I changed the Passphrase for both the username and the password. This is not necessary, however, it adds another layer of security. Try not to encrypt everything with the same passphrase. If one item gets compromised, everything encrypted under that passphrase is compromised.</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;height:2019px;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#008000;"># Powershell Allows The Loading of .NET Assemblies</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> <span style="color:#008000;"># Load the Security assembly to use with this script </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> [Reflection.Assembly]::LoadWithPartialName(<span style="color:#006080;">&quot;System.Security&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span> <span style="color:#008000;"># This function is to Encrypt A String.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span> <span style="color:#008000;"># $string is the string to encrypt, $passphrase is a second security &quot;password&quot; that has to be passed to decrypt.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span> <span style="color:#008000;"># $salt is used during the generation of the crypto password to prevent password guessing.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span> <span style="color:#008000;"># $init is used to compute the crypto hash -- a checksum of the encryption</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span> <span style="color:#008000;">#################</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span> <span style="color:#0000ff;">function</span> Encrypt-String($String, $Passphrase, $salt=<span style="color:#006080;">&quot;SaltCrypto&quot;</span>, $init=<span style="color:#006080;">&quot;IV_Password&quot;</span>, [<span style="color:#0000ff;">switch</span>]$arrayOutput)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>     <span style="color:#008000;"># Create a COM Object for RijndaelManaged Cryptography</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>     $r = new-Object System.Security.Cryptography.RijndaelManaged</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>     <span style="color:#008000;"># Convert the Passphrase to UTF8 Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>     $pass = [Text.Encoding]::UTF8.GetBytes($Passphrase)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>     <span style="color:#008000;"># Convert the Salt to UTF Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>     $salt = [Text.Encoding]::UTF8.GetBytes($salt)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>     <span style="color:#008000;"># Create the Encryption Key using the passphrase, salt and SHA1 algorithm at 256 bits</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>     $r.Key = (new-Object Security.Cryptography.PasswordDeriveBytes $pass, $salt, <span style="color:#006080;">&quot;SHA1&quot;</span>, 5).GetBytes(32) <span style="color:#008000;">#256/8</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>     <span style="color:#008000;"># Create the Intersecting Vector Cryptology Hash with the init</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span>     $r.IV = (new-Object Security.Cryptography.SHA1Managed).ComputeHash( [Text.Encoding]::UTF8.GetBytes($init) )[0..15]</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum26">  26:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum27">  27:</span>     <span style="color:#008000;"># Starts the New Encryption using the Key and IV   </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum28">  28:</span>     $c = $r.CreateEncryptor()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum29">  29:</span>     <span style="color:#008000;"># Creates a MemoryStream to do the encryption in</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum30">  30:</span>     $ms = new-Object IO.MemoryStream</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum31">  31:</span>     <span style="color:#008000;"># Creates the new Cryptology Stream --&gt; Outputs to $MS or Memory Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum32">  32:</span>     $cs = new-Object Security.Cryptography.CryptoStream $ms,$c,<span style="color:#006080;">&quot;Write&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum33">  33:</span>     <span style="color:#008000;"># Starts the new Cryptology Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum34">  34:</span>     $sw = new-Object IO.StreamWriter $cs</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum35">  35:</span>     <span style="color:#008000;"># Writes the string in the Cryptology Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum36">  36:</span>     $sw.Write($String)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum37">  37:</span>     <span style="color:#008000;"># Stops the stream writer</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum38">  38:</span>     $sw.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum39">  39:</span>     <span style="color:#008000;"># Stops the Cryptology Stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum40">  40:</span>     $cs.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum41">  41:</span>     <span style="color:#008000;"># Stops writing to Memory</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum42">  42:</span>     $ms.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum43">  43:</span>     <span style="color:#008000;"># Clears the IV and HASH from memory to prevent memory read attacks</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum44">  44:</span>     $r.Clear()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum45">  45:</span>     <span style="color:#008000;"># Takes the MemoryStream and puts it to an array</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum46">  46:</span>     [byte[]]$result = $ms.ToArray()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum47">  47:</span>     <span style="color:#008000;"># Converts the array from Base 64 to a string and returns</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum48">  48:</span>     <span style="color:#0000ff;">return</span> [Convert]::ToBase64String($result)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum49">  49:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum50">  50:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum51">  51:</span> <span style="color:#0000ff;">function</span> Decrypt-String($Encrypted, $Passphrase, $salt=<span style="color:#006080;">&quot;SaltCrypto&quot;</span>, $init=<span style="color:#006080;">&quot;IV_Password&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum52">  52:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum53">  53:</span>     <span style="color:#008000;"># If the value in the Encrypted is a string, convert it to Base64</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum54">  54:</span>     <span style="color:#0000ff;">if</span>($Encrypted <span style="color:#cc6633;">-is</span> [string]){</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum55">  55:</span>         $Encrypted = [Convert]::FromBase64String($Encrypted)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum56">  56:</span>        }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum57">  57:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum58">  58:</span>     <span style="color:#008000;"># Create a COM Object for RijndaelManaged Cryptography</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum59">  59:</span>     $r = new-Object System.Security.Cryptography.RijndaelManaged</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum60">  60:</span>     <span style="color:#008000;"># Convert the Passphrase to UTF8 Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum61">  61:</span>     $pass = [Text.Encoding]::UTF8.GetBytes($Passphrase)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum62">  62:</span>     <span style="color:#008000;"># Convert the Salt to UTF Bytes</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum63">  63:</span>     $salt = [Text.Encoding]::UTF8.GetBytes($salt)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum64">  64:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum65">  65:</span>     <span style="color:#008000;"># Create the Encryption Key using the passphrase, salt and SHA1 algorithm at 256 bits</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum66">  66:</span>     $r.Key = (new-Object Security.Cryptography.PasswordDeriveBytes $pass, $salt, <span style="color:#006080;">&quot;SHA1&quot;</span>, 5).GetBytes(32) <span style="color:#008000;">#256/8</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum67">  67:</span>     <span style="color:#008000;"># Create the Intersecting Vector Cryptology Hash with the init</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum68">  68:</span>     $r.IV = (new-Object Security.Cryptography.SHA1Managed).ComputeHash( [Text.Encoding]::UTF8.GetBytes($init) )[0..15]</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum69">  69:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum70">  70:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum71">  71:</span>     <span style="color:#008000;"># Create a new Decryptor</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum72">  72:</span>     $d = $r.CreateDecryptor()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum73">  73:</span>     <span style="color:#008000;"># Create a New memory stream with the encrypted value.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum74">  74:</span>     $ms = new-Object IO.MemoryStream @(,$Encrypted)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum75">  75:</span>     <span style="color:#008000;"># Read the new memory stream and read it in the cryptology stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum76">  76:</span>     $cs = new-Object Security.Cryptography.CryptoStream $ms,$d,<span style="color:#006080;">&quot;Read&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum77">  77:</span>     <span style="color:#008000;"># Read the new decrypted stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum78">  78:</span>     $sr = new-Object IO.StreamReader $cs</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum79">  79:</span>     <span style="color:#008000;"># Return from the function the stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum80">  80:</span>     Write-Output $sr.ReadToEnd()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum81">  81:</span>     <span style="color:#008000;"># Stops the stream    </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum82">  82:</span>     $sr.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum83">  83:</span>     <span style="color:#008000;"># Stops the crypology stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum84">  84:</span>     $cs.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum85">  85:</span>     <span style="color:#008000;"># Stops the memory stream</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum86">  86:</span>     $ms.Close()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum87">  87:</span>     <span style="color:#008000;"># Clears the RijndaelManaged Cryptology IV and Key</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum88">  88:</span>     $r.Clear()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum89">  89:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum90">  90:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum91">  91:</span> <span style="color:#008000;"># This clears the screen of the output from the loading of the assembly.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum92">  92:</span> cls</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum93">  93:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum94">  94:</span> <span style="color:#008000;"># $me will never = 1, so It will run indefinately</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum95">  95:</span> $me = 0</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum96">  96:</span>     write-host <span style="color:#006080;">&quot;To End This Application, Close the Window&quot;</span>    </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum97">  97:</span>     Write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum98">  98:</span> do</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum99">  99:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum100"> 100:</span>     <span style="color:#008000;"># Prompt the user for the password    </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum101"> 101:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum102"> 102:</span>     $ustring = read-host <span style="color:#006080;">&quot;(Case Sensitive) Please Enter Username&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum103"> 103:</span>     $pstring = read-host <span style="color:#006080;">&quot;(Case Sensitive) Please Enter User Password&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum104"> 104:</span>     <span style="color:#008000;"># Encrypt the string and store it into the $encrypted variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum105"> 105:</span>     $uencrypted = Encrypt-String $ustring <span style="color:#006080;">&quot;U_MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum106"> 106:</span>     $pencrypted = Encrypt-String $pstring <span style="color:#006080;">&quot;P_MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum107"> 107:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum108"> 108:</span>     <span style="color:#008000;"># Write result to the screen</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum109"> 109:</span>     write-host <span style="color:#006080;">&quot;Encrypted Username is: $uencrypted&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum110"> 110:</span>     write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum111"> 111:</span>     write-host <span style="color:#006080;">&quot;Encrypted Password is: $pencrypted&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum112"> 112:</span>     write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum113"> 113:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum114"> 114:</span>     write-host <span style="color:#006080;">&quot;Testing Decryption of Username / Password...&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum115"> 115:</span>     write-host <span style="color:#006080;">&quot;&quot;</span>    </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum116"> 116:</span>     <span style="color:#008000;"># Decrypts the string and stores the decrypted value in $decrypted</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum117"> 117:</span>     $udecrypted = Decrypt-String $uencrypted <span style="color:#006080;">&quot;U_MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum118"> 118:</span>     $pdecrypted = Decrypt-String $pencrypted <span style="color:#006080;">&quot;P_MyStrongPassword&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum119"> 119:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum120"> 120:</span>     <span style="color:#008000;"># Writes the decrpted value to the screen</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum121"> 121:</span>     write-host <span style="color:#006080;">&quot;Decrypted Password is: $udecrypted&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum122"> 122:</span>     write-host <span style="color:#006080;">&quot;&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum123"> 123:</span>     write-host <span style="color:#006080;">&quot;Decrypted Password is: $pdecrypted&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum124"> 124:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum125"> 125:</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum126"> 126:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum127"> 127:</span> <span style="color:#0000ff;">while</span> ($me <span style="color:#cc6633;">-ne</span> 1)</pre>
<p><!--CRLF--></div>
</div>
<p><strong>To use this Function: </strong></p>
<p><strong>Start</strong> &gt; <strong>Run </strong>&gt; Type <strong>powershell.exe –noexit c:\location\EncryptDecryptStringUP.ps1</strong> </p>
<p><strong>** When you are done close the window.</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/468/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/468/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/468/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=468&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/03/20/powershell-script-encrypting-decrypting-a-string-function-encrypt-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Script: Finding A Distinguished Name of a Group/User: Function Find-DN</title>
		<link>http://bittangents.com/2010/03/08/powershell-script-finding-a-distinguished-name-of-a-groupuser-function-find-dn/</link>
		<comments>http://bittangents.com/2010/03/08/powershell-script-finding-a-distinguished-name-of-a-groupuser-function-find-dn/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:18:43 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Powershell Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/03/08/powershell-script-finding-a-distinguished-name-of-a-groupuser-function-find-dn/</guid>
		<description><![CDATA[By: Brenton Blawat This article explains the the method by which one would be able to Search Active Directory for the distinguished name of a User or Group. This is helpful when trying to add an object to Active Directory or adding Users to Groups. Function Find-DN Finding Distinguished Name: Download PS1 Here 1: # [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=465&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>This article explains the the method by which one would be able to Search Active Directory for the distinguished name of a User or Group. This is helpful when trying to add an object to Active Directory or adding Users to Groups.</p>
<p><strong>Function Find-DN Finding Distinguished Name:</strong> <a href="http://www.brentblawat.com/blog/codesnippets/find-dn.ps1"><strong>Download PS1 Here</strong></a></p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Function Find Distinguished Name</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#0000ff;">function</span> find-dn { <span style="color:#0000ff;">param</span>([string]$adfindtype, [string]$cName)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>     <span style="color:#008000;"># Create A New ADSI Call</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>     $root = [ADSI]<span style="color:#006080;">''</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>     <span style="color:#008000;"># Create a New DirectorySearcher Object</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>     $searcher = new-object System.DirectoryServices.DirectorySearcher($root)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>     <span style="color:#008000;"># Set the filter to search for a specific CNAME</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>     $searcher.<span style="color:#0000ff;">filter</span> = <span style="color:#006080;">&quot;(&amp;(objectClass=$adfindtype) (CN=$cName))&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>     <span style="color:#008000;"># Set results in $adfind variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>     $adfind = $searcher.findall()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>     <span style="color:#008000;"># If Search has Multiple Answers </span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>     <span style="color:#0000ff;">if</span> ($adfind.count <span style="color:#cc6633;">-gt</span> 1) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>         $count = 0 </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>         <span style="color:#0000ff;">foreach</span>($i <span style="color:#0000ff;">in</span> $adfind)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>         {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>             <span style="color:#008000;"># Write Answers On Screen</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>             write-host $count <span style="color:#006080;">&quot;: &quot;</span> $i.path</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>             $count += 1</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>         }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>         <span style="color:#008000;"># Prompt User For Selection</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>         $selection = Read-Host <span style="color:#006080;">&quot;Please select item: &quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>         <span style="color:#008000;"># Return the Selection</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>         <span style="color:#0000ff;">return</span> $adfind[$selection].path</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum26">  26:</span>     <span style="color:#008000;"># Return The Answer</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum27">  27:</span>     <span style="color:#0000ff;">return</span> $adfind[0].path</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum28">  28:</span> }</pre>
<p><!--CRLF--></div>
</div>
<p><strong>Using this Function:</strong></p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># To use the function to find a User:</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> find-dn <span style="color:#006080;">&quot;user&quot;</span> <span style="color:#006080;">&quot;Blawat&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span> <span style="color:#008000;"># To use the function to find a Group:</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span> find-dn <span style="color:#006080;">&quot;group&quot;</span> <span style="color:#006080;">&quot;IT Help Desk&quot;</span></pre>
<p><!--CRLF--></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/465/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/465/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/465/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=465&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/03/08/powershell-script-finding-a-distinguished-name-of-a-groupuser-function-find-dn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>
	</item>
		<item>
		<title>2010 Volkswagen CC Review &#8211; A test Drive Bashing</title>
		<link>http://bittangents.com/2010/02/23/2010-volkswagen-cc-review-a-test-drive-bashing/</link>
		<comments>http://bittangents.com/2010/02/23/2010-volkswagen-cc-review-a-test-drive-bashing/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 05:53:48 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Car Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/23/2010-volkswagen-cc-review-a-test-drive-bashing/</guid>
		<description><![CDATA[By: Brenton Blawat This article is the first of many car reviews for 2009/2010 vehicles. I chose the Volkswagen CC as the first review as it was the most intriguing to write about out of the 20 or so vehicles I was able to test drive. 2010 Volkswagen CC&#160; In an effort to raise the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=456&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>This article is the first of many car reviews for 2009/2010 vehicles. I chose the Volkswagen CC as the first review as it was the most intriguing to write about out of the 20 or so vehicles I was able to test drive.</p>
<p><a href="http://brentblawat.files.wordpress.com/2010/02/cc09scr_3qtr_performance_800x600.jpg"><img style="display:inline;border-width:0;" title="cc09scr_3qtr_performance_800x600" border="0" alt="cc09scr_3qtr_performance_800x600" src="http://brentblawat.files.wordpress.com/2010/02/cc09scr_3qtr_performance_800x600_thumb.jpg?w=370&#038;h=278" width="370" height="278" /></a> </p>
<p><strong>2010 Volkswagen CC</strong>&#160;</p>
<p>In an effort to raise the ‘class’ bar for VW, the Volkswagen created the Passat CC to replace standard VW Passat. At a first glance, you see a <a href="http://www.mercedes-amg.com/?lang=usa#/cls63-overview">Mercedes CLS-class</a> but after closer inspection, you realize the branding on the front is Volkswagen. This immediately intrigued me, and a test drive was in the works for the vehicle. After the test drive, I thought, with such sleek exterior styling, how did they get it so wrong?!!</p>
<p><strong></strong></p>
<p><strong>Interior – Is it really that Luxurious?</strong></p>
<p><a href="http://brentblawat.files.wordpress.com/2010/02/cc10scr_steeringwheel_800x600.jpg"><img style="display:inline;border-width:0;" title="cc10scr_steeringwheel_800x600" border="0" alt="cc10scr_steeringwheel_800x600" src="http://brentblawat.files.wordpress.com/2010/02/cc10scr_steeringwheel_800x600_thumb.jpg?w=384&#038;h=289" width="384" height="289" /></a> <a href="http://brentblawat.files.wordpress.com/2010/02/pas10scr_steeringwheel_i01_800x600.jpg"><img style="display:inline;border-width:0;" title="pas10scr_steeringWheel_i01_800x600" border="0" alt="pas10scr_steeringWheel_i01_800x600" src="http://brentblawat.files.wordpress.com/2010/02/pas10scr_steeringwheel_i01_800x600_thumb.jpg?w=386&#038;h=290" width="386" height="290" /></a> </p>
<p><strong>Can anyone tell me which vehicle is the CC and which is the Passat?</strong></p>
<p>With interior reminiscent of its Passat predecessor, I was really hoping for more. The dashboard gauges and steering wheels are exactly the same, while the shifter and the seats are slightly different. To answer my question above, the image on the [left] is the Passat CC and the Image on the [right] is the Standard Passat. Scary how close the interiors are.</p>
<p>Why is this such a big deal? The Washington Times raved the Passat CC as having “classy-looking interior”. The new slogan speaks of luxury – but is it really? The stereo is touch screen, however, it is a bit scary to use/learn in heavy traffic. I still don’t like the cylindrical shifter. It really forces me to stay away from playing in sport mode. While I can admit that the CC’s seats are comfortable, I get very close to the same support in the Passat. The rear seat has a cup holder as part of the seat making the vehicle a true four seat vehicle (no cramming kids in the back). My second concern with this center console is hauling any items in the back seat such as a TV (one which wouldn’t fit in the opening of the trunk). I would be afraid of cracking the plastic on the cover, or damaging the TV.</p>
<p>The ride is what I would expect from a German car with low road noise and it passes the door closing test. <em>The door closing test is one where when you shut your door it is a solid thud. It shouldn’t have any radiating vibrations or rattles coming from inside the door or in the cabin.</em> While the frame and chassis of the vehicle are solid, the interior still needs some major work to make you feel like you are in a luxury car.</p>
<p>Performance? Nothing new… nothing real exciting. They still have the same 2.0T and VR6 engines.</p>
<p><strong>How did they miss the mark?</strong></p>
<p>The first gripe I have with the Volkswagen CC has to do with the 2.0 liter turbocharged automatic. The dual clutch system (DCS) in the vehicle gives the feeling that you are consistently missing the gear at take-off, and during mid-gear acceleration (like the Lancer Rally Sport). While the salesman insisted it was the turbo lag – any seasoned turbo driver (such as myself) &#8211; knows that it’s the gear not engaging smoothly in the vehicle. <em>To know the difference &#8212; turbo lag dips the RPM prior to an explosive take-off. The feeling you will get is that you are riding the clutch before it engages. The result is feeling like you are going to break the transmission when driving it. </em>The throttle response is thus affected, and takes the fun out of driving the vehicle. When switching to the VR6 version of the VW CC, you’re immediately engaged and the engine grunt makes you feel – this is cool. The numerous <a href="http://www.vwforum.com/forums/f14/common-vr6-problems-16379/">reported issues</a> with the VR6 engines require a second thought which purchasing the vehicle for engine longevity over 90k. Any salesman that states that the engine issues have been fixed, is just feeding you a line.</p>
<p>The second gripe I have with the Volkswagen CC has to do with the headroom – more appropriately the sunroof-headroom-ish-thingy (aka S.H.I.T.). While the manufacturer calls the feature a sunroof -&#160; it really isn’t by normal standards &#8211; its top vent. The sunroof doesn’t retract it only pops open to provide added cabin sunlight and ventilation. If you get a VW without the sunroof, your headroom is decreased by several inches and any six foot man would start to get a claustrophobic feeling inside the cabin. Also to mention, during the test drive, I was fortunate to have a friend with me, and she confirmed (with her being 5’9”) she felt as if the roof was collapsing on her as well. It seems anyone over 5’8” requires the sunroof which is only available on the luxury package &#8211; another “really??” moment. </p>
<p>Even if I were to overlook the $33,880 starting price tag for the luxury package (for which I can get a All Wheel Drive 2010 BMW 3 series with better residual), my two grips are immediate deal breakers when purchasing the vehicle. </p>
<p><strong>End Result:</strong> EPIC FAILURE.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/456/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/456/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/456/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=456&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/02/23/2010-volkswagen-cc-review-a-test-drive-bashing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/cc09scr_3qtr_performance_800x600_thumb.jpg" medium="image">
			<media:title type="html">cc09scr_3qtr_performance_800x600</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/cc10scr_steeringwheel_800x600_thumb.jpg" medium="image">
			<media:title type="html">cc10scr_steeringwheel_800x600</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/pas10scr_steeringwheel_i01_800x600_thumb.jpg" medium="image">
			<media:title type="html">pas10scr_steeringWheel_i01_800x600</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Script: Retrieving Distinguished name (DN) from A Fully Qualified Domain Name (FQDN)</title>
		<link>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/</link>
		<comments>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 19:49:40 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Powershell Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/</guid>
		<description><![CDATA[By: Brenton Blawat While there are many posts that describe the code to do this function, there aren’t many posts that provide variables with meaning or actually describe the syntax. This post describes the method by which you can retrieve a Distinguished Name from a Fully Qualified Domain Name. Quick Reference: Fully Qualified Domain Name [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=444&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>While there are many posts that describe the code to do this function, there aren’t many posts that provide variables with meaning or actually describe the syntax. This post describes the method by which you can retrieve a Distinguished Name from a Fully Qualified Domain Name. </p>
<p><u>Quick Reference:</u> </p>
<p>Fully Qualified Domain Name (FQDN): division.domain.root</p>
<p>Distinguished Name (DC): DC=division,DC=Domain,DC=root</p>
<p>Canonical Name(CN): division.domain.root/OrganizationalUnit/</p>
<p>If you are looking for a quick way to obtain a Distinguished Name or Fully Qualified Domain Name <a href="http://brentblawat.wordpress.com/2010/02/22/powershell-script-distinguished-name-fully-qualified-domain-name-to-string/">See this article.</a></p>
<p>&#160;</p>
<h2>Mr. Weaver’s Code</h2>
<p>Mark A. Weaver’s post <a href="http://vmweaver.com/index.php/2009/08/powershell-recursive-group-membership/">Powershell – Recursive Group Membership</a>, he describes the methods by which you can convert to and from multiple variables. Here is how Mr. Weaver performs the conversion operation:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.86%;font-family:&#39;direction:ltr;height:210px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">function</span> Convert-DNStoDN ($DNSName)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>    <span style="color:#008000;">#  Create an array of each item in the string separated by &quot;.&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>    $DNSArray = $DNSName.Split(<span style="color:#006080;">&quot;.&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>   <span style="color:#008000;"># Let's go through our new array and do something with each item</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>    <span style="color:#0000ff;">for</span> ($x = 0; $x <span style="color:#cc6633;">-lt</span> $DNSArray.Length ; $x++)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>       {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>         <span style="color:#008000;">#I don't want a comma after my last item, so check to see if I am on my last one and set</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>         <span style="color:#008000;"># $Separator equal to nothing.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>         <span style="color:#008000;"># Remember that we need to go to Length-1 because arrays are &quot;0 based indexes&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>          <span style="color:#0000ff;">if</span> ($x <span style="color:#cc6633;">-eq</span> ($DNSArray.Length - 1)){$Separator = <span style="color:#006080;">&quot;&quot;</span>}<span style="color:#0000ff;">else</span>{$Separator =<span style="color:#006080;">&quot;,&quot;</span>}</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>          [string]$DN += <span style="color:#006080;">&quot;DC=&quot;</span> + $DNSArray[$x] + $Separator</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>       }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>    <span style="color:#0000ff;">return</span> $DN</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span> }</pre>
<p><!--CRLF--></div>
</div>
<h2>My Code &#8211; Explained</h2>
<p>While my code is almost identical to Mr. Weaver’s Code, my only criticism is not providing useful variables and describing the functions. I can state, however, Mr. Weaver’s code provided a platform for a function that I use in a large production environment. I took the liberty to optimize the code (slightly) to meet my needs (Thank you sir!).</p>
<p><strong>My Function looks like: <a href="http://www.brentblawat.com/blog/codesnippets/FQDN_DN.PS1">Download PS1 Here</a></strong></p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;height:172px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#0000ff;">function</span> Get-Domain {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>     <span style="color:#008000;">#Retrieve the Fully Qualified Domain Name if one is not supplied</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum4">   4:</span>     <span style="color:#008000;"># division.domain.root</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum5">   5:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum6">   6:</span>     <span style="color:#0000ff;">if</span> ($FQDN <span style="color:#cc6633;">-eq</span> <span style="color:#006080;">&quot;&quot;</span>) {</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum7">   7:</span>         [String]$fqdn = [System.DirectoryServices.ActiveDirectory.Domain]::getcurrentdomain()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum8">   8:</span>     }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum9">   9:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum10">  10:</span>     <span style="color:#008000;"># Create a New Array 'Item' for each item in between the '.' characters</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum11">  11:</span>     <span style="color:#008000;"># Arrayitem1 division</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum12">  12:</span>     <span style="color:#008000;"># Arrayitem2 domain</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum13">  13:</span>     <span style="color:#008000;"># Arrayitem3 root</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum14">  14:</span>     $FQDNArray = $FQDN.split(<span style="color:#006080;">&quot;.&quot;</span>)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum15">  15:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum16">  16:</span>     <span style="color:#008000;"># Add A Separator of ','</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum17">  17:</span>     $Separator = <span style="color:#006080;">&quot;,&quot;</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum18">  18:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum19">  19:</span>     <span style="color:#008000;"># For Each Item in the Array</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum20">  20:</span>     <span style="color:#008000;"># for (CreateVar; Condition; RepeatAction)</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum21">  21:</span>     <span style="color:#008000;"># for ($x is now equal to 0; while $x is less than total array length; add 1 to X</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum22">  22:</span>     <span style="color:#0000ff;">for</span> ($x = 0; $x <span style="color:#cc6633;">-lt</span> $FQDNArray.Length ; $x++)</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum23">  23:</span>         { </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum24">  24:</span>&#160; </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum25">  25:</span>         <span style="color:#008000;">#If it's the last item in the array don't append a ','</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum26">  26:</span>         <span style="color:#0000ff;">if</span> ($x <span style="color:#cc6633;">-eq</span> ($FQDNArray.Length - 1)) { $Separator = <span style="color:#006080;">&quot;&quot;</span> }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum27">  27:</span>         </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum28">  28:</span>         <span style="color:#008000;"># Append to $DN DC= plus the array item with a separator after</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum29">  29:</span>         [string]$DN += <span style="color:#006080;">&quot;DC=&quot;</span> + $FQDNArray[$x] + $Separator</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum30">  30:</span>         </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum31">  31:</span>         <span style="color:#008000;"># continue to next item in the array</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum32">  32:</span>         }</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum33">  33:</span>     </pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum34">  34:</span>     <span style="color:#008000;">#return the Distinguished Name</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum35">  35:</span>     <span style="color:#0000ff;">return</span> $DN</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum36">  36:</span> }</pre>
<p><!--CRLF--></div>
</div>
<p><strong>To use the Function </strong>to get the Distinguished Name of the Domain:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.33%;font-family:&#39;direction:ltr;height:39px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Store the distinguished name in a variable named $objCrntDN.</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> $objCrntDN = Get-Domain</pre>
<p><!--CRLF--></div>
</div>
<p><strong>To use the function </strong>to get the Distinguished Name From a Fully Qualified Domain Name:</p>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.1%;font-family:&#39;direction:ltr;height:79px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Store the distinguished name in a variable named $objCrntDN</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> <span style="color:#008000;"># Pass the Fully Qualified Domain Name with call</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> $objCrntDN = Get-Domain division.domain.root </pre>
<p><!--CRLF--></div>
</div>
<p><strong>Note: </strong>This function also works if you place the division.domain.root in parentheses with quotations:</p>
<p><strong>Get-Domain(“division.domain.root”)</strong></p>
<h2>&#160;</h2>
<h2>What’s Different??</h2>
<p>While the output is basically the same, I’ve made a few changes in the code:</p>
<ol>
<li>“DNSname” is technically inaccurate, while I understand what he is meaning. He is referring to is the FQDN – a point of confusion for the readers. </li>
<li>I made the passing of a FQDN (optional) – as sometimes we don’t need to determine the FQDN (outside the function) before we get the Distinguished Name. </li>
<li>I named my function ‘Get-Domain’ . DNS-DN is a very specific function. Your will see that Marc has to call three different functions to convert between each of these. I chose to make a single function, and establish what the ultimate output will be. Name the function what you are getting or creating with the function. Get-Domain –&gt; You already know what the output will be &#8212; the Domain. </li>
<li>I removed the <em>Else { $separator }</em> out of the loop. In batch processing such as PowerShell, the interpreter will replace the $separator variable each time it passes through the loop for the items in the array. To make the code more efficient, I set the variable outside the loop as it only gets changed for the last array evaluation.</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/444/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/444/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/444/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=444&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/02/22/powershell-script-retrieving-distinguished-name-dn-from-a-fully-qualified-domain-name-fqdn/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell Script: Distinguished Name / Fully Qualified Domain Name to string</title>
		<link>http://bittangents.com/2010/02/22/powershell-script-distinguished-name-fully-qualified-domain-name-to-string/</link>
		<comments>http://bittangents.com/2010/02/22/powershell-script-distinguished-name-fully-qualified-domain-name-to-string/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 19:39:24 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Powershell Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/22/powershell-script-distinguished-name-fully-qualified-domain-name-to-string/</guid>
		<description><![CDATA[By: Brenton Blawat This article is designed to be short and sweet. This article displays the method by which one would retrieve the FQDN or Distinguished Name of the Domain. This is code is very useful for any operations in Active Directory. A must know for any scripter that needs to call the domain on [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=443&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[</p>
<p><strong>By: Brenton Blawat</strong></p>
<p>This article is designed to be short and sweet. This article displays the method by which one would retrieve the FQDN or Distinguished Name of the Domain. This is code is very useful for any operations in Active Directory. A must know for any scripter that needs to call the domain on a system without hard coding the value in the script.</p>
<p>Lets take a theoretical network that consists of ‘division’ subdomain, ‘domain’ as the domain, and ‘root’ as the domain root.</p>
<h2>Root Distinguished name &#8211; Easy Method in PowerShell</h2>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;height:68px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Instantiate The ADSI Provider</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> $root = [ADSI]<span style="color:#006080;">''</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span> $CurrentDN = $root.DistinguishedName</pre>
<p><!--CRLF--></div>
</div>
<p><strong>Result:</strong> </p>
<p>The variable $CurrentDN will contain:</p>
<p>DN=division,DN=domain,DN=root</p>
<p>E.G. DN=bittangents,DN=com</p>
<h2>Root Fully Qualified Domain Name (FQDN) – Easy Method In PowerShell</h2>
<div style="border-bottom:silver 1px solid;text-align:left;border-left:silver 1px solid;line-height:12pt;background-color:#f4f4f4;width:97.5%;font-family:&#39;direction:ltr;height:67px;max-height:200px;font-size:8pt;overflow:auto;border-top:silver 1px solid;cursor:text;border-right:silver 1px solid;margin:20px 0 10px;padding:4px;" id="codeSnippetWrapper">
<div style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;padding:0;" id="codeSnippet">
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum1">   1:</span> <span style="color:#008000;"># Retrieve the Fully Qualified Domain Name and store it in $FQDN Variable</span></pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:#f4f4f4;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum2">   2:</span> [String]$FQDN =  [System.DirectoryServices.ActiveDirectory.Domain]::getCurrentDomain()</pre>
<p><!--CRLF--></p>
<pre style="text-align:left;line-height:12pt;background-color:white;width:100%;font-family:&#39;direction:ltr;color:black;font-size:8pt;overflow:visible;border-style:none;margin:0;padding:0;"><span style="color:#606060;" id="lnum3">   3:</span>&#160; </pre>
<p><!--CRLF--></div>
</div>
<p><strong>Result:</strong> </p>
<p>The variable $FQDN will contain:</p>
<p>division.domain.root</p>
<p>E.G. bittangents.com</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/443/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/443/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/443/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=443&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/02/22/powershell-script-distinguished-name-fully-qualified-domain-name-to-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>
	</item>
		<item>
		<title>Default Domain Policies Windows Server 2003 SP2 / Windows server 2008 R2</title>
		<link>http://bittangents.com/2010/02/03/default-domain-policies-windows-server-2003-sp2-windows-server-2008-r2/</link>
		<comments>http://bittangents.com/2010/02/03/default-domain-policies-windows-server-2003-sp2-windows-server-2008-r2/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 01:59:43 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Server Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/03/default-domain-policies-windows-server-2003-sp2-windows-server-2008-r2/</guid>
		<description><![CDATA[By: Brenton Blawat What would seem like a quick reference item to find on Google, seems to have been lost in the billions of web pages. This article is intended as a quick reference to what the Default Domain Policies are for Windows Server 2003 SP2 and Windows Server 2008 R2. Please note that while [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=440&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>What would seem like a quick reference item to find on Google, seems to have been lost in the billions of web pages. This article is intended as a quick reference to what the Default Domain Policies are for Windows Server 2003 SP2 and Windows Server 2008 R2. Please note that while some of the policies appear to be identical, the hierarchical structure behind the policies are different.</p>
<p><strong>Default Domain Policies: Windows Server 2003 SP2</strong></p>
<p>+ Computer Configuration &gt; Windows Settings &gt; Security Settings &gt; Account Policies &gt; Password Policy</p>
<blockquote><p>- Enforce Password History = 24 Passwords</p>
<p>- Maximum Password Age = 42 Days</p>
<p>- Minimum Password Age = 1 Days</p>
<p>- Minimum Password Length = 7 Characters</p>
<p>- Password must meet complexity requirements = Enabled</p>
<p>- Store Passwords using reversible encryption = Disabled</p>
</blockquote>
<p>+ Computer Configuration &gt; Windows Settings &gt; Security Settings &gt; Account Policies &gt; Account Lockout Policy</p>
<blockquote><p>- Account lockout threshold = 0 invalid logon attempts</p>
</blockquote>
<p>+ Computer Configuration &gt; Windows Settings &gt; Security Settings &gt; Account Policies &gt; Kerberos Policy</p>
<blockquote><p>- Enforce user logon restrictions = Enabled</p>
<p>- Maximum lifetime for service ticket = 600 minutes</p>
<p>- Maximum lifetime for user ticket = 10 hours</p>
<p>- Maximum lifetime for user ticket renewal = 7 days</p>
<p>- Maximum tolerance for computer clock synchronization = 5 minutes</p>
</blockquote>
<p>+ Computer Configuration &gt; Windows Settings &gt; Security Settings &gt; Local Policies &gt; Security Options</p>
<blockquote><p>- Network Security: Force Logoff when logon hours expire = Disabled</p>
</blockquote>
<p>+ Computer Configuration &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies &gt; Encrypting File System</p>
<blockquote><p>- Administrator Issued File Recovery Certificate</p>
</blockquote>
<p>+ User Settings &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies &gt; Autoenrollment Settings</p>
<blockquote><p>- Enroll Certificates Automatically</p>
</blockquote>
<p>&#160;</p>
<p><strong>Default Domain Policies: Windows Server 2008 R2 64-bit</strong></p>
<p>+ Computer Configuration &gt; Policies &gt; Windows Settings &gt; Security Settings &gt; Account Policies &gt; Password Policy</p>
<blockquote><p>- Enforce Password History = 24 Passwords</p>
<p>- Maximum Password Age = 42 Days</p>
<p>- Minimum Password Age = 1 Days</p>
<p>- Minimum Password Length = 7 Characters</p>
<p>- Password must meet complexity requirements = Enabled</p>
<p>- Store Passwords using reversible encryption = Disabled</p>
</blockquote>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Account Policies &gt; Account Lockout Policy</p>
<blockquote><p>- Account lockout threshold = 0 invalid logon attempts</p>
</blockquote>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Account Policies &gt; Kerberos Policy</p>
<blockquote><p>- Enforce user logon restrictions = Enabled</p>
<p>- Maximum lifetime for service ticket = 600 minutes</p>
<p>- Maximum lifetime for user ticket = 10 hours</p>
<p>- Maximum lifetime for user ticket renewal = 7 days</p>
<p>- Maximum tolerance for computer clock synchronization = 5 minutes</p>
</blockquote>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Local Policies &gt; Security Options</p>
<blockquote><p>- Network access: Allow anonymous SID/Name translation = Disabled</p>
<p>- Network security: Do not store LAN Manager hash value on next password change = Enabled</p>
<p>- Network Security: Force Logoff when logon hours expire = Disabled</p>
</blockquote>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies &gt; Encrypting File System</p>
<blockquote><p>- Administrator Issued File Recovery Certificate</p>
</blockquote>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies &gt; Trusted Root Certification Authorities</p>
<blockquote><p>- Allow users to select new root certification authorities (CAs) to trust = Enable</p>
<p>- Client computers can trust the following certificate stores = Third-Party Root Certification Authorities and Enterprise Root Certification Authorities</p>
<p>- To perform certificate-based authentication of users and computers, CAs must meet the criteria = Registered in Active Directory only</p>
</blockquote>
<p>&#160;</p>
<h1>Default Domain Policy Differences: Windows Server 2003 / Windows Server 2008</h1>
<p><strong>Default Domain Policies added to Windows Server 2008</strong></p>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Local Policies &gt; Security Options</p>
<blockquote><p>- Network access: Allow anonymous SID/Name translation = Disabled</p>
<p>- Network security: Do not store LAN Manager hash value on next password change = Enabled</p>
</blockquote>
<p>+ Computer Configuration &gt; Policy &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies &gt; Trusted Root Certification Authorities</p>
<blockquote><p>- Allow users to select new root certification authorities (CAs) to trust = Enable</p>
<p>- Client computers can trust the following certificate stores = Third-Party Root Certification Authorities and Enterprise Root Certification Authorities</p>
<p>- To perform certificate-based authentication of users and computers, CAs must meet the criteria = Registered in Active Directory only</p>
</blockquote>
<p><strong>Removed from Windows Server 2008</strong></p>
<p>+ User Settings &gt; Windows Settings &gt; Security Settings &gt; Public Key Policies &gt; Autoenrollment Settings</p>
<blockquote><p>- Autoenrollment Settings: Enroll Certificates Automatically</p>
</blockquote>
<p><strong></strong></p>
<p><strong>** </strong>NOTE: All re-productions / digital copies of this content must be approved in writing by an authorized representative of BIT Tangents.**</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/440/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/440/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/440/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=440&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/02/03/default-domain-policies-windows-server-2003-sp2-windows-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>
	</item>
		<item>
		<title>2008 BMW 335XI &#8211; Fuel Delivery Lemon Story (Part 2)</title>
		<link>http://bittangents.com/2010/02/01/2008-bmw-335xi-fuel-delivery-lemon-story-part-2-2/</link>
		<comments>http://bittangents.com/2010/02/01/2008-bmw-335xi-fuel-delivery-lemon-story-part-2-2/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 20:35:49 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Car Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2010/02/01/2008-bmw-335xi-fuel-delivery-lemon-story-part-2-2/</guid>
		<description><![CDATA[By: Brenton Blawat Part 1 – Lemon Law Over / Issue Logs Part 2 – Contacting the Dealer / Manufacturer – UPDATED! I apologize for taking so long to get this article posted to the internet. It has taken since January 23, 2009 till to June 2009 to come to a final resolution with BMW [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=430&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p><a href="http://brentblawat.wordpress.com/2009/01/24/2008-bmw-335xi-fuel-delivery-lemon-story/"><strong>Part 1 – Lemon Law Over / Issue Logs</strong></a></p>
<p><strong>Part 2 – Contacting the Dealer / Manufacturer – UPDATED!</strong></p>
<p>I apologize for taking so long to get this article posted to the internet. It has taken since January 23, 2009 till to June 2009 to come to a final resolution with BMW of North America. I am writing this article as a guide on how you can approach your dealership to assist you PRIOR to claiming a lemon on a vehicle to get a peaceful resolution.</p>
<p><strong>Two IMPORTANT things to know:</strong></p>
<p>1. Your dealership is NOT liable for any portion of vehicle failing when you purchase or lease a BRAND NEW vehicle. – This means that barging into your dealership demanding for a new vehicle <strong><span style="text-decoration:underline;">won’t</span></strong> work. In fact, according to lemon law, your dispute is between the car manufacturer and yourself. – Be kind to your local dealer; they DON’T have to help you.</p>
<p>2. BMW is only obligated to follow the State and Federal lemon laws. Additional damages are typically not granted to anyone pursuing the lemon law. Claiming you will sue the dealership for thousands of dollars for lost time will get you no where but out the door. Stay calm and collected and the dealership will assist you.</p>
<h3>Success! A FAIR resolution.</h3>
<p><a href="http://brentblawat.files.wordpress.com/2010/02/msport.jpg"><img style="display:inline;border-width:0;" title="msport" src="http://brentblawat.files.wordpress.com/2010/02/msport_thumb.jpg?w=492&#038;h=268" border="0" alt="msport" width="492" height="268" /></a></p>
<p>First, a special <strong>THANK YOU</strong>, goes out to <strong>Dan Jansen</strong> of <strong>International Autos</strong> for being patient with my relentless calls on the delivery of my new vehicle. Without Dan’s assistance and understanding, I would not have been able to receive my substitution of collateral. Thank you again!</p>
<p><strong>1. Keeping Records</strong></p>
<p>As shown in my earlier post, I had to keep all of the paperwork for the repairs on my vehicle. While having an issue occur 5 times, is annoying, you have to remember BMW is great at providing a replacement vehicle while you vehicle is in the shop. Keep the records so that you can prove your case to the BMW of North America. It’s about the BMW doing the right thing; not that you’ve been inconvenienced.</p>
<p><strong>2. Contacting the Sales Manager at Local Dealership.</strong></p>
<p>The first step is contacting the Sales Manager at the local dealership. Tell them you have been having problems with your vehicle and are interested in performing a substitution of collateral. <em>A substitution of collateral is basically a vehicle exchange. In a substitution of collateral, BMW of North America will buy back your current vehicle and trade it out for a different vehicle on the lot. This also works for leased vehicles (such as in my case). The difference in cost of the vehicles will be charged charged to you. However, I was charged the DEALERSHIP COST difference versus the MSRP cost difference. This saved me over $3,500.00 by having the dealership extend their costs to me.</em></p>
<p>The Sales Manager will be required to contact the service manager; but keeping the sales manager as your point person will help tremendously.</p>
<p><strong>3. Service Manager Sign-</strong><strong>off</strong></p>
<p>The service manger is required to review your service records to see if the reoccurring issue has to do with the same problem. The KEY component is to remain focused on the actual LEMON Law verbiage with the service manager. While the service manager may say I replaced different components each time the law states: <em>“The dealer failed four times to fix the same defect;”. </em>The “defects” by law are generic; not physical components. (EG Car will not maintain idle on start)<br />
The service manager will sign off on the substitution of collateral and it will be passed back to the Sales Manager.</p>
<p><strong>4. Regional BMW Representative Sign-off</strong></p>
<p>In order for BMW of North America to accept the substitution of collateral, the regional BMW Representative is required to sign off on the contract. In most cases if the Sales Manager and the Service Manager sign-off on the collateral, the sign-off from the Regional BMW Representative just becomes a formality.</p>
<p>Once the Regional BMW Representative Signs-off the substitution of collateral paperwork is complete and the physical delivery of the vehicle can be performed.</p>
<p><strong>5. (Optional) Upgrades</strong></p>
<p>In 2009, BMW released a 335 with a “M Sport Package” that I opted to purchase. I purchased this upgrade at dealership cost with Paddle Shifters and a few other extras to completely trick out the vehicle.</p>
<p>If you are NOT interested in upgrading the vehicle, the dealership can provide you either:</p>
<p>a) a new vehicle off of their lot.</p>
<p>b) a new vehicle to be manufactured in Germany.</p>
<p>Since I upgraded the vehicle with a package that was not available yet, I chose “Option B” and it took an extra 60 days to deliver the substitution of collateral.</p>
<p><strong>6. End Result</strong></p>
<p><a href="http://brentblawat.files.wordpress.com/2010/02/img5.jpg"><img style="display:inline;border-width:0;" title="IMG5" src="http://brentblawat.files.wordpress.com/2010/02/img5_thumb.jpg?w=244&#038;h=184" border="0" alt="IMG5" width="244" height="184" /></a> <a href="http://brentblawat.files.wordpress.com/2010/02/img7.jpg"><img style="display:inline;border-width:0;" title="img7" src="http://brentblawat.files.wordpress.com/2010/02/img7_thumb.jpg?w=244&#038;h=184" border="0" alt="img7" width="244" height="184" /></a> <a href="http://brentblawat.files.wordpress.com/2010/02/img4.jpg"><img style="display:inline;border-width:0;" title="img4" src="http://brentblawat.files.wordpress.com/2010/02/img4_thumb.jpg?w=244&#038;h=184" border="0" alt="img4" width="244" height="184" /></a></p>
<p>BMW of North America agreed continue my existing lease with a New 2009 BMW 335i X-Drive. This means that I got a 0 mile vehicle 1 year into my lease and my residual payout for the 2009 BMW 335i X-Drive is at the cost of a 2008 BMW 335XI. A GREAT DEAL, and completely FAIR to me. I still have my 45,000 miles to use in the remaining two years.</p>
<p>If anyone needs more details I’ll be more than happy to assist you.</p>
<h1>FEB.1.2010 Update &gt;:(</h1>
<p>Thank you for the continued reading and comments on this blog posting. I have made a new 2010 resolution to update this blog article as well blogging more articles.</p>
<p><strong>First Item To Address: Wheel and Tire / Dent and Ding Warranty Transfer </strong></p>
<p>To my <strong>GREAT </strong>disappointment, the warranty that BMW promoted as part of the 2008 BMW 3 Series didn’t carry over to the 2009. This is a result of BMW now offering their own extended service warranty. I so happened to get a bulge the right rear passenger tire and after it was replaced on my dime, I got a nail in the side wall of the same side tire. Both tires costing me in excess of $600.00. Lesson learned – <strong>BUY THE NEW BMW WARRANTY!!!!!</strong></p>
<p><strong>Second Item To Address: The 2009 BMW 335 High Pressure Fuel Pump Issue – Strikes AGAIN</strong></p>
<p>After about 11,000 miles and being out 400 miles of town, the High Pressure Fuel Pump issue strikes again. This time around, however, I was was traveling at a sustained 80 MPH on the interstate when it felt as if my transmission went on the vehicle. After pulling over, stopping the car, and starting it again, the car would function for 50 miles where I would then have to ‘rinse and repeat’ until I made it to the BMW Dealership. Not a pleasant experience.</p>
<p><strong>Third Item To Address: Awesome Readers and Leaving Comments. </strong></p>
<p>I appreciate everyone that has kept this blog #1 for BMW HPFP Issues. Here are my direct responses to my readers:</p>
<p>Kurt:</p>
<blockquote><p>“The dealers offer nothing regardless. Like most owners, the legal pursuits was the only option. I was cool until I hit 50 DAYS in the shop. Nobody listened.”</p>
<p>Kurt – Sorry to hear of your issues. As frustrating as this can be, try a different dealership. Remember that the dealership is not responsible for a faulty vehicle. It is only responsible to fix the vehicle under the manufacturer warranty. Even then a dealership as a right to turn you away with – we can’t figure it out. Issues like the HPFP are difficult to troubleshoot. There are stories of injectors and injector rings being replaced to fix this issue when the issue is just a HPFP. I hope everything turns out for the best.</p></blockquote>
<p>Nicole:</p>
<blockquote><p>“.. i just bought a 2008 bmw 328xi”</p>
<p>Nicole – It is my understanding that the HPFP is only available on the Twin Turbo Engines in the 135, 335, 535, and X6. It sounds like you might be having a different issue.</p></blockquote>
<p>Dan T:</p>
<blockquote><p>“ 1. What does bmw do for used purchase under warranty? Usually lemon law is for new.<br />
  2. With no fault codes, shoudl I be concerned? Why would such a costly car just go dead at a stop?<br />
  3. I heard software for turbos needs updated, I have v27.2 and heard v30 improved performance, heard anything? ”</p>
<p>Dan T –</p>
<p>1. The Lemon Law in Wisconsin also allows for vehicle to be used as long as its under the first year of the warranty. There are other protections like Magnuson-Moss Warranty Act that provide protections for used vehicles.</p>
<p>2. Imagine the car cutting out in the middle of an intersection with a semi-truck (or train) coming full-speed in cross traffic. With no fault codes – absolutely should still be concerned for your safety.  The High Pressure Fuel Pump delivers fuel to the engine in the 3000 PSI range. If a turbo spins up and not enough fuel is being delivered, the car will die.</p>
<p>3. Performance may be better, however, BMW will never admit that. BMW rates the 3 series at 300HP which is borderline for high performance in insurance ratings. To keep the insurance ratings low, the vehicle is rated at 300 HP, while the engine is capable of producing well over 380HP with a tuner (Burger Motorsports JuiceBox+ or Dinan Chip). I hear the PnP JuiceBox+ is well worth the money; but very much voids the warranty.</p></blockquote>
<p>Dave:</p>
<blockquote><p>“ Purchased a new 2009 335 CI in August which had been running flawlessly until yesterday (6300 mi). The car started up normally, but stalled out when I put it in reverse and fuel pump sensor light came on as well as check engine light. Towed to the dealer and I was given a 335 loaner. Final diagnosis is pending, but I expect the same problem with the HPFP. Disappointing. Maybe the Cayman S next time for me. Appreciate the info… “</p>
<p>Bimmer to a Cayman S – you should be ashamed of yourself <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   On a serious note, a 335xi with the Burger Motorsports Juicebox+ at the stock setting will SMOKE a Cayman S. You have to remember the 335i is a 3.0 liter Twin Turbo and gets full horsepower and torque at 3000 RPM. The Cayman S is a 3.4I displacing 320HP at 7200RPM. Yes, the problems with the 335 are disappointing, but when my car is working, I wouldn’t trade it for any vehicle on the road (well maybe the new <a href="http://www.audiusa.com/us/brand/en/models/a4_sedan.html">Audi S4</a>).</p>
<p>If you get the 2010 Cayman S, please feel free to provide your feedback on the vehicle – I’d love to hear it.</p></blockquote>
<p> </p>
<p><strong>Thanks again to everyone and safe driving!</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/430/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/430/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/430/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=430&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2010/02/01/2008-bmw-335xi-fuel-delivery-lemon-story-part-2-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/msport_thumb.jpg" medium="image">
			<media:title type="html">msport</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/img5_thumb.jpg" medium="image">
			<media:title type="html">IMG5</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/img7_thumb.jpg" medium="image">
			<media:title type="html">img7</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2010/02/img4_thumb.jpg" medium="image">
			<media:title type="html">img4</media:title>
		</media:content>
	</item>
		<item>
		<title>Basic How to Guide for the Symbol (Motorola) PPT-8846</title>
		<link>http://bittangents.com/2009/02/03/basic-how-to-guide-for-the-symbol-motorola-ppt-8846/</link>
		<comments>http://bittangents.com/2009/02/03/basic-how-to-guide-for-the-symbol-motorola-ppt-8846/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 21:09:38 +0000</pubDate>
		<dc:creator>brentblawat</dc:creator>
				<category><![CDATA[Hardware Tangents]]></category>

		<guid isPermaLink="false">http://brentblawat.wordpress.com/2009/02/03/basic-how-to-guide-for-the-symbol-motorola-ppt-8846/</guid>
		<description><![CDATA[By: Brenton Blawat While most of this article may seem somewhat trivial, I have found that there are many Users that don’t know how to warm/soft boot and cold/hard boot the handhelds. Below is a quick reference guide: How to Change the Battery in a Symbol (Motorola) PPT-8846 &#160; &#160; How to Warm / Soft [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=396&subd=brentblawat&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>By: Brenton Blawat</strong></p>
<p>While most of this article may seem somewhat trivial, I have found that there are many Users that don’t know how to warm/soft boot and cold/hard boot the handhelds. </p>
<p>Below is a quick reference guide:</p>
<h3>How to Change the Battery in a Symbol (Motorola) PPT-8846</h3>
<p><a href="http://brentblawat.files.wordpress.com/2009/02/image.png"><img title="image" style="display:inline;border-width:0;" height="349" alt="image" src="http://brentblawat.files.wordpress.com/2009/02/image-thumb.png?w=792&#038;h=349" width="792" border="0" /></a>&#160;</p>
<p>&#160;</p>
<h3>How to Warm / Soft Boot a Symbol (Motorola) PPT-8846</h3>
<p><a href="http://brentblawat.files.wordpress.com/2009/02/howtowarmboot.jpg"><img title="HowToWarmBoot" style="display:inline;border-width:0;" height="383" alt="HowToWarmBoot" src="http://brentblawat.files.wordpress.com/2009/02/howtowarmboot-thumb.jpg?w=789&#038;h=383" width="789" border="0" /></a>&#160;</p>
<p>&#160;</p>
<h3>How to Cold / Hard Boot a Symbol (Motorola) PPT-8846</h3>
<p><a href="http://brentblawat.files.wordpress.com/2009/02/howtocoldboot.jpg"><img title="HowToColdBoot" style="display:inline;border-width:0;" height="284" alt="HowToColdBoot" src="http://brentblawat.files.wordpress.com/2009/02/howtocoldboot-thumb.jpg?w=795&#038;h=284" width="795" border="0" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/brentblawat.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/brentblawat.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/brentblawat.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/brentblawat.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/brentblawat.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/brentblawat.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/brentblawat.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/brentblawat.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/brentblawat.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/brentblawat.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=bittangents.com&blog=4066351&post=396&subd=brentblawat&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://bittangents.com/2009/02/03/basic-how-to-guide-for-the-symbol-motorola-ppt-8846/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2fd28fc9e2db7e469f8237a6d55fba2b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">brentblawat</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2009/02/image-thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2009/02/howtowarmboot-thumb.jpg" medium="image">
			<media:title type="html">HowToWarmBoot</media:title>
		</media:content>

		<media:content url="http://brentblawat.files.wordpress.com/2009/02/howtocoldboot-thumb.jpg" medium="image">
			<media:title type="html">HowToColdBoot</media:title>
		</media:content>
	</item>
	</channel>
</rss>