<?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>Andrei DANEASA &#187; configuration</title>
	<atom:link href="http://www.webxpert.ro/andrei/tag/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webxpert.ro/andrei</link>
	<description>Programming, database, security, Oracle, .NET, C#, PHP, Travel</description>
	<lastBuildDate>Tue, 18 Oct 2011 15:42:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vista cannot get IP from some routers or some DHCP servers</title>
		<link>http://www.webxpert.ro/andrei/2010/10/08/vista-cannot-get-ip-from-some-routers-or-some-dhcp-servers/</link>
		<comments>http://www.webxpert.ro/andrei/2010/10/08/vista-cannot-get-ip-from-some-routers-or-some-dhcp-servers/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 20:33:45 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Poor services]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[kb]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/?p=766</guid>
		<description><![CDATA[My parents in-law got their home router replaced by the provider with a crappy Zyxel wi-fi router. Besides the fact everything is working slower than before due to some internal firewall and management, one laptop having Vista on it (hmmm, it came with it) was unable to connect to the new network. After spending few [...]]]></description>
			<content:encoded><![CDATA[<p>My parents in-law got their home router replaced by the provider with a crappy Zyxel wi-fi router. Besides the fact everything is working slower than before due to some internal firewall and management, one laptop having Vista on it (hmmm, it came with it) was unable to connect to the new network.</p>
<p><a href="http://www.webxpert.ro/andrei/wp-content/uploads/2010/10/windows_vista_logo.jpg"><img class="aligncenter size-full wp-image-767" title="windows_vista_logo" src="http://www.webxpert.ro/andrei/wp-content/uploads/2010/10/windows_vista_logo.jpg" alt="" width="241" height="177" /></a></p>
<p>After spending few hours trying to connect, changing all the settings in the router, restarting the router like hell, I was about to reinstall the OS on that laptop. But as I never worked on Vista, I thought google-ing a bit might reveal similar experiences. And yes, I was so right&#8230; one of the first results was stating:<br />
<span id="more-766"></span><br />
<em>This issue occurs because of a difference in design between Windows Vista and Microsoft Windows XP Service Pack 2 (SP2). Specifically, in Windows XP SP2, the BROADCAST flag in DHCP discovery packets is set to 0 (disabled). In Windows Vista, the BROADCAST  flag in DHCP discovery packets is not disabled. Therefore, some routers and some non-Microsoft DHCP servers cannot process the DHCP discovery packets.</em></p>
<p>The simplest thing you have to do is disabling Broadcast on your wi-fi card, by setting the REG_DWORD key:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{GUID}\ DhcpConnForceBroadcastFlag to 0, where GUID is your wi-fi card ID.</p>
<p>Other options plus the description of the whole story is available here: <a href="http://support.microsoft.com/kb/928233/en-us">http://support.microsoft.com/kb/928233/en-us</a></p>
<p>&#8230; and yes, the problem is solved in Windows 7.</p>
<p>Good luck!</p>
<li><a href="http://www.webxpert.ro/andrei/2010/04/03/oracle-database-11g-release-2-available-on-windows-finally/">Oracle Database 11g Release 2 available on Windows&#8230; finally</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/11/11/drop-off-in-google-storage-pricing/">Drop-off in Google storage pricing</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/10/26/few-words-about-google-chart-api/">Few words on Google Chart API</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/10/04/pearson-vue-and-prometric-battle/">Pearson VUE and Prometric battle</a></li>
<li><a href="http://www.webxpert.ro/andrei/2009/05/30/10-tools-i-am-using-everyday/">10 tools I am using everyday</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2010/10/08/vista-cannot-get-ip-from-some-routers-or-some-dhcp-servers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Preparing for Oracle Database Enterprise Manager &#8211; automatic configuration</title>
		<link>http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-automated-configuration/</link>
		<comments>http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-automated-configuration/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 13:47:08 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[EM]]></category>
		<category><![CDATA[enterprise manager]]></category>
		<category><![CDATA[loopback adapter]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-automated-configuration/</guid>
		<description><![CDATA[I wrote a lot how to install loopback adapter, how to set the ip address (either manual or automatically), how to add an entry to hosts file (either manual or automatically). Now let&#8217;s add all together into a single script. The script will do the following: call DevCon to install Microsoft Loopback Adapter (you need [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote a lot how to install loopback adapter, how to set the ip address (either manual or automatically), how to add an entry to hosts file (either manual or automatically). Now let&#8217;s add all together into a single script.<br />
The script will do the following:</p>
<ul>
<li>call DevCon to install Microsoft Loopback Adapter (you need to <a href="http://download.microsoft.com/download/1/1/f/11f7dd10-272d-4cd2-896f-9ce67f3e0240/devcon.exe">download DevCon</a> and save it in the same folder as the script)</li>
<li>set the IP address and mask for the recently installed loopback adapter</li>
<li>dinamically read from Windows folder the hosts file</li>
<li>dinamically read the hostname</li>
<li>add a new entry to the hosts file with the supplied IP address and hostname</li>
<li>ping the hostname and check if the supplied IP address is responded</li>
<li><strong>MOST IMPORTANT:</strong> everything is dynamic and automatic. You don&#8217;t need to edit the script before each install. Just run it!</li>
</ul>
<p>You can download this script here:<span id="more-51"></span><br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback_silent.zip"><img src='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/zip.gif' alt='ZIP' /></a><br />
<a href='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback_silent.zip' title='EM_configure_interactive'>Silent Install</a><br />
<em>* you will need to run the .bat file and make sure that you have devcon.exe in the same folder</em></p>
<p>I am thinking that maybe some users would want to modify the IP address, mask or set another hostname, they would want to set their own parameters. This is the reason why I created another version of the script which wait for user input for IP, Mask and Hostname, but having the default values filled in like this:<br />
<img src='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback1.jpg' alt='loopback enter the IP' /></p>
<p>You can download this script here:<br />
<a href="http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback_interactive.zip"><img src='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/zip.gif' alt='ZIP' /></a><br />
<a href='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback_interactive.zip' title='EM_configure_interactive'>Interactive Install</a><br />
<em>* you will need to run the .bat file and make sure that you have devcon.exe in the same folder</em></p>
<p><strong>Read also</strong></p>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-manual-configuration/">Preparing for Oracle Database Enterprise Manager &#8211; manual configuration</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/">Microsoft Loopback Adapter automatic configuration</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-install/">Microsoft Loopback Adapter automatic install</a></li>
<li><a href="http://www.webxpert.ro/andrei/2010/10/08/vista-cannot-get-ip-from-some-routers-or-some-dhcp-servers/">Vista cannot get IP from some routers or some DHCP servers</a></li>
<li><a href="http://www.webxpert.ro/andrei/2010/09/09/upgrade-oracle-apex-3-2-1-to-4-0-1-on-oracle-database-10g-express-edition-xe/">Upgrade Oracle APEX 3.2.1 to 4.0.1 on Oracle Database 10g Express Edition (XE)</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-automated-configuration/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Preparing for Oracle Database Enterprise Manager &#8211; manual configuration</title>
		<link>http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-manual-configuration/</link>
		<comments>http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-manual-configuration/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 12:52:55 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[EM]]></category>
		<category><![CDATA[enterprise manager]]></category>
		<category><![CDATA[loopback adapter]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[oracle]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-manual-configuration/</guid>
		<description><![CDATA[As a common practice all the servers have fixed IP address. Because not all Oracle Databases are installed directly on servers, but on laptops or different machines, it&#8217;s very probable that you have DHCP-provided IP address. If you have DHCP IP address, your full computer name may vary, because different domain is added to computer [...]]]></description>
			<content:encoded><![CDATA[<p>As a common practice all the servers have fixed IP address. Because not all Oracle Databases are installed directly on servers, but on laptops or different machines, it&#8217;s very probable that you have<strong> DHCP-provided IP address</strong>.<br />
If you have DHCP IP address, your full computer name may vary, because different domain is added to computer name. Once the name can be mylaptop.oracle.com, the next day the name can be mylaptop.myhomenetwork.ro and so on.<br />
The problem is when you want to install <strong>Oracle Database Enterprise Manager</strong> (web-based administration tool), because the installer is creating a folder on the disk have the name based on fully computer name. If you change the network the Enterprise Manager will not work, because it will not find a folder based on the actual computer name.<br />
Enterprise Manager is not crucial , it&#8217;s just an interface, so if you don&#8217;t want to install it your database will work the same and you will configure the database through SQL*Plus or SQL Developer or Toad or what third party admin you want.<br />
<span id="more-50"></span><br />
The workaround is to break this connection from networks and computer name. This is why we are installing the Microsoft Loopback Adapter, a dummy interface card, that have the highest priority and will respond first. Then we need to set an IP address like I described <a href="http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/">here</a><br />
Windows has a <strong><em>hosts </em></strong>file when you can set <strong>static associations between an IP address and a hostname</strong>. The location of the hosts file is :</p>
<div class="dean_ch" style="white-space: wrap;">%WINDIR%/system32/drivers/etc/hosts</div>
<p>Normally in this file you will find just an entry:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">127.0</span><span class="nu0">.0</span><span class="nu0">.1</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LOCALHOST</div>
<p>You just need to add a new entry to this file with Loopback&#8217;s IP Address and your hostname like this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">192.168</span><span class="nu0">.100</span><span class="nu0">.100</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ADANEASA</div>
<p>The final check will be to ping your hostname and check if the loopback is responding.</p>
<p>In the next article you will find a script that will do everything automatically: </p>
<ul>
<li>installing the Microsoft Loopback Adapter</li>
<li>setting the IP</li>
<li>adding the entry in hosts file</li>
<li>pinging the hostname and checking the result.</li>
</ul>
<p><strong>Read also</strong></p>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-automated-configuration/">Preparing for Oracle Database Enterprise Manager &#8211; automatic configuration</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/">Microsoft Loopback Adapter automatic configuration</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/02/microsoft-loopback-adapter-manual-install-on-2000-xp-2003-vista/">Microsoft Loopback Adapter manual install on 2000, XP, 2003, Vista</a></li>
<li><a href="http://www.webxpert.ro/andrei/2010/10/08/vista-cannot-get-ip-from-some-routers-or-some-dhcp-servers/">Vista cannot get IP from some routers or some DHCP servers</a></li>
<li><a href="http://www.webxpert.ro/andrei/2010/09/09/upgrade-oracle-apex-3-2-1-to-4-0-1-on-oracle-database-10g-express-edition-xe/">Upgrade Oracle APEX 3.2.1 to 4.0.1 on Oracle Database 10g Express Edition (XE)</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-manual-configuration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Microsoft Loopback Adapter automatic configuration</title>
		<link>http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/</link>
		<comments>http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 10:54:24 +0000</pubDate>
		<dc:creator>andreiash</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[loopback adapter]]></category>

		<guid isPermaLink="false">http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/</guid>
		<description><![CDATA[What do you need to know before configuring Loopback Adapter? do not set the gateway because you can screw you internet connection do not set DNS because you really don&#8217;t need it do not set 127.0.0.1 or 192.168.0.1 or addresses from the same class as your internet connection address The addresses that I&#8217;m using most [...]]]></description>
			<content:encoded><![CDATA[<p>What do you need to know before configuring Loopback Adapter?</p>
<ul>
<li>do not set the gateway because you can screw you internet connection</li>
<li>do not set DNS because you really don&#8217;t need it</li>
<li>do not set 127.0.0.1 or 192.168.0.1 or addresses from the same class as your internet connection address</li>
</ul>
<p>The addresses that I&#8217;m using most of the time are <strong>10.10.10.10</strong> and <strong>192.168.100.100</strong>, both with <strong>255.255.255.0</strong> as mask.</p>
<p>Let&#8217;s see how can we set the IP address from the command line.</p>
<p><strong>Solution 1<br />
=======</strong><br />
<strong>Netsh.exe</strong> is a tool installed with Windows 2000, XP and 2003 Server. <span id="more-45"></span>The name comes from Network Shell I guess&#8230;<br />
In order to set an IP address for the adapter called &#8220;Local Area Connection 4&#8243; you need to run this command:</p>
<div class="dean_ch" style="white-space: wrap;">netsh interface ip set address name=<span class="st0">&quot;Local Area Connection 4&quot;</span> static <span class="nu0">192.168</span><span class="nu0">.100</span><span class="nu0">.100</span> <span class="nu0">255.255</span><span class="nu0">.255</span><span class="nu0">.0</span> <span class="nu0">1</span></div>
<p>This solution has a big disadvantage: it is not fully automated. You need first to check the name of the connection and then run netsh with that name. Depending on how many adapter you have installed, the last digit differs. So we need to another solution that will query the adapters and selects the loopback.</p>
<p><strong>Solution 2<br />
=======</strong><br />
A better solution is to create a script that query all the network adapters and selects the loopback adapter. I assume that there is no reason to have more than 1 loopback adapter installed.<br />
The script is the following:</p>
<div class="dean_ch" style="white-space: wrap;">strIPAddress = <span class="st0">&quot;192.168.100.100&quot;</span><br />
strSubnetMask = <span class="st0">&quot;255.255.255.0&quot;</span><br />
Set objNetwork = <span class="kw3">CreateObject</span><span class="br0">&#40;</span><span class="st0">&quot;WScript.Network&quot;</span><span class="br0">&#41;</span><br />
strAlias = objNetwork.ComputerName</p>
<p>Set objWMIService = <span class="kw3">GetObject</span><span class="br0">&#40;</span><span class="st0">&quot;winmgmts:\\&quot;</span> &amp; strComputer &amp; <span class="st0">&quot;\root\cimv2&quot;</span><span class="br0">&#41;</span><br />
Set colNetAdapters = objWMIService.ExecQuery _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#40;</span><span class="st0">&quot;Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE&quot;</span><span class="br0">&#41;</span><br />
strGatewayMetric = Array<span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span><br />
<span class="kw1">For</span> Each objNetAdapter <span class="kw1">in</span> colNetAdapters</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> objNetAdapter.Description = <span class="st0">&quot;Microsoft Loopback Adapter&quot;</span> <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errEnable = objNetAdapter.EnableStatic<span class="br0">&#40;</span>array<span class="br0">&#40;</span>strIPAddress<span class="br0">&#41;</span>, array<span class="br0">&#40;</span>strSubnetMask<span class="br0">&#41;</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> errEnable = <span class="nu0">0</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.Echo <span class="st0">&quot;The IP address has been changed.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.Echo <span class="st0">&quot;The IP address could not be changed.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span> <span class="kw1">if</span><br />
<span class="kw1">Next</span></div>
<p>You can download the script <a href='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/conf_ip.vbs' title='configure IP silent'>here</a><br />
<strong><br />
Solution 3 &#8211; RECOMMENDED<br />
====================</strong><br />
My preferred solution is to use an interactive script, the same like Solution 2, but the IP Address and mask are entered interactive by the user. The nice thing here is that we can set default values, so if the user is undecided, he can choose the default values.<br />
The script is the following:</p>
<div class="dean_ch" style="white-space: wrap;">strIPAddress = inputbox<span class="br0">&#40;</span><span class="st0">&quot;Set the IP Address&quot;</span>, <span class="st0">&quot;IP Address?&quot;</span>, <span class="st0">&quot;192.168.100.100&quot;</span><span class="br0">&#41;</span><br />
strSubnetMask = array<span class="br0">&#40;</span>inputbox<span class="br0">&#40;</span><span class="st0">&quot;Set mask&quot;</span>, <span class="st0">&quot;Mask?&quot;</span>, <span class="st0">&quot;255.255.255.0&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></p>
<p>Set objNetwork = <span class="kw3">CreateObject</span><span class="br0">&#40;</span><span class="st0">&quot;WScript.Network&quot;</span><span class="br0">&#41;</span></p>
<p>Set objWMIService = <span class="kw3">GetObject</span><span class="br0">&#40;</span><span class="st0">&quot;winmgmts:\\&quot;</span> &amp; strComputer &amp; <span class="st0">&quot;\root\cimv2&quot;</span><span class="br0">&#41;</span><br />
Set colNetAdapters = objWMIService.ExecQuery _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#40;</span><span class="st0">&quot;Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE&quot;</span><span class="br0">&#41;</span><br />
strGatewayMetric = Array<span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span></p>
<p><span class="kw1">For</span> Each objNetAdapter <span class="kw1">in</span> colNetAdapters</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> objNetAdapter.Description = <span class="st0">&quot;Microsoft Loopback Adapter&quot;</span> <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; errEnable = objNetAdapter.EnableStatic<span class="br0">&#40;</span>array<span class="br0">&#40;</span>strIPAddress<span class="br0">&#41;</span>, strSubnetMask<span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">If</span> errEnable = <span class="nu0">0</span> <span class="kw1">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.Echo <span class="st0">&quot;The IP address has been changed.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">Else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WScript.Echo <span class="st0">&quot;The IP address could not be changed.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">end</span> <span class="kw1">if</span><br />
<span class="kw1">Next</span></div>
<p>When you will run the script it will open the following screen:<br />
<img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback1.jpg" alt="set IP address" /><br />
<img src="http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/loopback2.jpg" alt="set mask" /><br />
You can download the script <a href='http://www.webxpert.ro/andrei/wp-content/uploads/2008/01/conf_ip_interactive.vbs' title='configure IP interactive'>here</a></p>
<p>If you have any issues, comments, suggestions, feel free to post a comment.</p>
<p><strong>Read also</strong></p>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-automated-configuration/">Preparing for Oracle Database Enterprise Manager &#8211; automatic configuration</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/preparing-for-oracle-database-enterprise-manager-manual-configuration/">Preparing for Oracle Database Enterprise Manager &#8211; manual configuration</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-install/">Microsoft Loopback Adapter automatic install</a></li>
<li><a href="http://www.webxpert.ro/andrei/2010/10/08/vista-cannot-get-ip-from-some-routers-or-some-dhcp-servers/">Vista cannot get IP from some routers or some DHCP servers</a></li>
<li><a href="http://www.webxpert.ro/andrei/2008/01/02/microsoft-loopback-adapter-manual-install-on-2000-xp-2003-vista/">Microsoft Loopback Adapter manual install on 2000, XP, 2003, Vista</a></li>
]]></content:encoded>
			<wfw:commentRss>http://www.webxpert.ro/andrei/2008/01/10/microsoft-loopback-adapter-automated-configure/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

