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

<channel>
	<title>API Programming &#187; Registry</title>
	<atom:link href="http://www.brangle.com/wordpress/tag/registry/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brangle.com/wordpress</link>
	<description>Just another computer weblog</description>
	<lastBuildDate>Wed, 14 Dec 2011 07:35:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Add or Map a Custom Hostnames to IP Address without a DNS Server</title>
		<link>http://www.brangle.com/wordpress/2009/08/add-or-map-custom-hostnames-to-ip-address-without-dns-server/</link>
		<comments>http://www.brangle.com/wordpress/2009/08/add-or-map-custom-hostnames-to-ip-address-without-dns-server/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 07:32:14 +0000</pubDate>
		<dc:creator>lopezg</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iTouch]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Sever 2003]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[XP]]></category>

		<guid isPermaLink="false">http://www.brangle.com/wordpress/?p=400</guid>
		<description><![CDATA[There's been several times where I had an Apache server running locally on my computer as a development (or dev) server. Now if this is on my home network, or if your system administrator won't give you your own custom host name then you have to go the DIY (do it yourself) route. But, often times, I have to hard code host names, or I need several different websites hosted on my personal machine. Well that's where the <i>hosts</i> file comes into play. [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been several times where I had an Apache server running locally on my computer as a development (or dev) server.  Now if this is on my home network, or if your system administrator won&#8217;t give you your own custom host name then you have to go the DIY (do it yourself) route.  But, often times, I have to hard code host names, or I need several different websites hosted on my personal machine.  Well that&#8217;s where the <i>hosts</i> file comes into play.<span id="more-400"></span></p>
<p>Another example of needing a custom ip address is at my company, I&#8217;ve needed to check the status of a printer and if I want to try the access it via its hostname <i>http://printername</i> it wont work because the SysAdmin has shared the printer on the network without adding a custom dns host name, even though it has a static IP address on the network. So I added the name of each printer to my <i>hosts</i> file so now I have no problem accessing any printer via its name, without having to first look up its IP address.<!--more--></p>
<p>Also, if you intend to <b>block a website by its hostname</b> then this is also the solution for you.</p>
<p>You can find the <i>hosts</i> file in the following folder&#8230;<br />
Windows 95, 98, and ME in the %WinDir%\ directory<br />
NT, 2000, XP, 2003, Vista, 7 in the %SystemRoot%\system32\drivers\etc\ directory (%SystemRoot% is almost always C:\Windows)<br />
iPhone and iTouch in the /private/etc/hosts directory<br />
Linux in the /etc/hosts directory</p>
<p>Also, a note for 0.1% of Windows NT, 2000, XP, 2003, Vista, and Windows 7 users, the actual location may differ, to find the real location you&#8217;ll need to dig into the registry key, give the following a look up</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="regedit" style="font-family:monospace;">HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters</pre></td></tr></table></div>

<p> and look for the following string key <i>DataBasePath</i>.  On my computer it was declared as <i>%SystemRoot%\System32\drivers\etc</i>  I know that&#8217;s what I said it would be above, I just want all you SysAdmins to be aware of that 0.1% chance.</p>
<p>Lastly once, you finish making any modifications you&#8217;ll need to flush your locally cached DNS on your computer. </p>
<p>In WinXP you can edit the <i>c:\windows\system32\drivers\etc\hosts</i> file by opening it in notepad or any ascii text editor. By default the last line you&#8217;ll see is
<pre>127.0.0.1       localhost</pre>
<p> but other programs can change this.  The IP address 127.0.0.1 is always the ip address of the local computer.  It doesn&#8217;t matter if the computer has a different IP address on the network, 127.0.0.1 is considered a loop back address, in other words, it always points to your computer.</p>
<p>you can add a new hostname followed by the ip address in the text file that&#8217;s it, it&#8217;s just that simple!  Let&#8217;s add example.com to our local host names, now if we had apache installed, this ip address would always map to our computer just by adding the following line to the end of your <i>hosts</i> file&#8230; </p>
<pre>127.0.0.1    example.com</pre>
<p>Now what if you want to block a website like MySpace? Add the following line </p>
<pre>0.0.0.0       myspace.com</pre>
<p>The problem with this approach is it only blocks the hostname myspace.com, it leaves www.myspace.com and login.myspace.com completely accessible, and other hostname that I don&#8217;t know about (or worse yet, any future host names that they decide to add).  So let&#8217;s block all we we can by pointing them to a null IP address</p>
<pre>0.0.0.0       myspace.com
0.0.0.0       www.myspace.com
0.0.0.0       login.myspace.com</pre>
<p>Ok great, I added my login.myspace.com to the <i>hosts</i> file, but I can still access it, what gives?!? There is two possible fixes for this solution. First close all of your browsers, for example, if you can still access the domain in Internet Explorer or FireFox it&#8217;s because the IP address has been cached, close the browser so that the browser can &quot;forget&quot; the IP address.  Now before you reopen the application we also need to clear the DNS entry from Windows.  We can clear a DNS entry from windows by clicking <i>Start</i>, <i>Run</i> typing <i>ipconfig /flushdns</i> then clicking ok.  This will flush the ip address address stored by the operating system.  You should now by able to open FireFox and Internet Explorer and verify that they no longer have the IP address cached.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brangle.com/wordpress/2009/08/add-or-map-custom-hostnames-to-ip-address-without-dns-server/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Explained: What Does Applying Computer Settings&#8230; mean</title>
		<link>http://www.brangle.com/wordpress/2009/08/the-meaning-of-applying-computer-settings/</link>
		<comments>http://www.brangle.com/wordpress/2009/08/the-meaning-of-applying-computer-settings/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 07:32:28 +0000</pubDate>
		<dc:creator>lopezg</dc:creator>
				<category><![CDATA[Windows Registry]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.brangle.com/wordpress/?p=154</guid>
		<description><![CDATA[You know how whenever you login to your Windows box you always see a message saying "Applying computer settings..." and it can sit there for what feels like forever!!! Well it annoyed me to no end, I wanted to find out what it really meant and see if there was a way to tell me what sort of voodoo Microsoft was running on my machine. So after a quick search I found 2 Microsoft KB articles, <a href="http://support.microsoft.com/kb/325376/" target="_blank">kb325376</a> and <a href="http://support.microsoft.com/kb/316243" target="_blank">kb316243</a>. Now, I have a meaningful description like applying group policy, playing log off sound, etc... [...]]]></description>
			<content:encoded><![CDATA[<p>You know how whenever you login to your Windows box you always see a message saying &#8220;Applying computer settings&#8230;&#8221; and it can sit there for what feels like forever!!! Well it annoyed me to no end, I wanted to find out what it really meant and see if there was a way to tell me what sort of voodoo Microsoft was running on my machine.  So after a quick search I found 2 Microsoft KB articles, <a href="http://support.microsoft.com/kb/325376/" target="_blank">kb325376</a> and <a href="http://support.microsoft.com/kb/316243" target="_blank">kb316243</a>.  Now, I have a meaningful description like applying group policy, playing log off sound, etc&#8230;<span id="more-154"></span></p>
<p>After running the following registry script on my machine, I can get a verbose output. </p>
<p>There are two ways to set this in the registry, Option 1</p>
<ol>
<li>Open the registry by clicking start, run, typing <span class="BRinlineCode">regedit.exe</span> then clicking ok. </li>
<li>Navigate to the following subkey
<pre><span>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system</span></pre>
</li>
<li>Right click to create a new &quot;DWORD Value&quot;
<li>Title the new DWORD key <span class="BRinlineCode">VerboseStatus</span>
<li>Double click <span class="BRinlineCode">VerboseStatus</span> and make sure it has a &quot;Value data&quot; of 1
<li>Close the registry, you&#8217;re done.
</ol>
<p><div id="attachment_161" class="wp-caption alignleft" style="width: 310px"><a href="http://www.brangle.com/wordpress/wp-content/uploads/2009/08/registry-applying-computer-settings-verbose-output.jpg"><img src="http://www.brangle.com/wordpress/wp-content/uploads/2009/08/registry-applying-computer-settings-verbose-output-300x111.jpg" alt="Windows Registry Editor for Verbose Output" title="registry-applying-computer-settings-verbose-output" width="300" height="111" class="size-medium wp-image-161" /></a><p class="wp-caption-text">Windows Registry Editor for Verbose Output</p></div><br />
When you done, you should see your registry key look like the following image on your left.</p>
<p>Option 2 to create this setting is by copying and pasting the following code into a registry file called <i>VerboseOutput.reg</i>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="reg" style="font-family:monospace;"><span style="color: #0000FF;">Windows Registry Editor Version 5.00</span>
&nbsp;
<span style="color: #000000;">&#91;</span><span style="color: #800000;">HKEY_LOCAL_MACHINE</span>\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system<span style="color: #000000;">&#93;</span>
<span style="color: #0000FF;">&quot;VerboseStatus&quot;</span><span style="color: #000000;">=</span><span style="color: #0000FF;">dword:00000001</span></pre></td></tr></table></div>

<p>This registry hack can be applied to the following Microsoft boxes&#8230;</p>
<ul>
<li>Microsoft Windows XP Professional
<li>Microsoft Windows 2000 Server
<li>Microsoft Windows 2000 Advanced Server
<li>Microsoft Windows 2000 Professional Edition
<li>Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
<li>Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
<li>Microsoft Windows Server 2003, Standard Edition (32-bit x86)
<li>Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
<li>Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
<li>Microsoft Windows Small Business Server 2003 Standard Edition
<li>Microsoft Windows Small Business Server 2003 Premium Edition
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.brangle.com/wordpress/2009/08/the-meaning-of-applying-computer-settings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Block IE7 and/or IE8 from Automatic Updates via the Windows Registry</title>
		<link>http://www.brangle.com/wordpress/2009/08/block-ie7-andor-ie8-from-automatic-updates-via-the-windows-registry/</link>
		<comments>http://www.brangle.com/wordpress/2009/08/block-ie7-andor-ie8-from-automatic-updates-via-the-windows-registry/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 01:46:49 +0000</pubDate>
		<dc:creator>lopezg</dc:creator>
				<category><![CDATA[Windows Registry]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.brangle.com/wordpress/?p=65</guid>
		<description><![CDATA[<p>Here&#8217;s a quick and simple additions for you SysAdmins out there, how to block Windows XP from automatically downloading Internet Explorer 7 and IE 8. This is a simple addition to the Windows Registry</p> <p>To block IE7, navigate to the following subkey (or folder) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0 then create a new DWORD value DoNotAllowIE70 and assign [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick and simple additions for you SysAdmins out there, how to block Windows XP from automatically downloading Internet Explorer 7 and IE 8.  This is a simple addition to the Windows Registry<span id="more-65"></span></p>
<p>To block IE7, navigate to the following subkey (or folder)<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0<br />
then create a new DWORD value<br />
DoNotAllowIE70<br />
and assign it a value of 1</p>
<p>The procedure for IE8 is almost identical for IE8, just change the version number,<br />
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Setup\8.0<br />
then create a new DWORD value<br />
DoNotAllowIE80<br />
and assign it a value of 1</p>
<p>If you&#8217;d like to create a registry file, then just create a new text file with a .reg extension, for example IE7and8Blocker.reg once that&#8217;s created, just copy and paste the following into the registry/text file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="reg" style="font-family:monospace;"><span style="color: #0000FF;">Windows Registry Editor Version 5.00</span>
&nbsp;
<span style="color: #000000;">&#91;</span><span style="color: #800000;">HKEY_LOCAL_MACHINE</span>\SOFTWARE\Microsoft\Internet Explorer\Setup\7.0<span style="color: #000000;">&#93;</span>
<span style="color: #0000FF;">&quot;DoNotAllowIE70&quot;</span><span style="color: #000000;">=</span><span style="color: #0000FF;">dword:00000001</span>
&nbsp;
<span style="color: #000000;">&#91;</span><span style="color: #800000;">HKEY_LOCAL_MACHINE</span>\SOFTWARE\Microsoft\Internet Explorer\Setup\8.0<span style="color: #000000;">&#93;</span>
<span style="color: #0000FF;">&quot;DoNotAllowIE80&quot;</span><span style="color: #000000;">=</span><span style="color: #0000FF;">dword:00000001</span></pre></td></tr></table></div>

<p>Lastly, if you don&#8217;t want to follow my examples, you can download a prepackaged Toolkit available from Microsoft for <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=4516A6F7-5D44-482B-9DBD-869B4A90159C" target="_blank">IE7</a> and <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=21687628-5806-4ba6-9e4e-8e224ec6dd8c&#038;displaylang=en" target="_blank">IE8</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.brangle.com/wordpress/2009/08/block-ie7-andor-ie8-from-automatic-updates-via-the-windows-registry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

