<?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>Computer Support &#187; configuration</title>
	<atom:link href="http://www.xiitec.com/blog/tag/configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xiitec.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 30 Dec 2009 08:40:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Importing and Exporting DHCP Server Configuration</title>
		<link>http://www.xiitec.com/blog/2008/02/22/importing-and-exporting-dhcp-server-configuration/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/importing-and-exporting-dhcp-server-configuration/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:31:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=172</guid>
		<description><![CDATA[The netsh tool makes it easy to import and export DHCP Server configuration information. In the CLI solution, I showed how to export all scope information, but you can specify a subset if you want only certain ones. The following command exports only the scopes pertaining to 10.1.2.0 and 10.1.3.0:
&#62;  netsh dhcp server export [...]]]></description>
			<content:encoded><![CDATA[<p>The netsh tool makes it easy to import and export DHCP Server configuration information. In the CLI solution, I showed how to export all scope information, but you can specify a subset if you want only certain ones. The following command exports only the scopes pertaining to 10.1.2.0 and 10.1.3.0:</p>
<pre>&gt;  netsh dhcp server export C:\dhcp.txt 10.1.2.0 10.1.3.0</pre>
<p><span id="more-172"></span></p>
<p><strong>Using a graphical user interface</strong></p>
<p>The Windows 2000 Resource Kit contains a tool called dhcpexim , which is a simple GUI for exporting and importing DHCP Server configuration. However, I&#8217;ve tested it on Windows Server 2003 and have not been able to make it work properly. Based on other newsgroup postings on the subject, it doesn&#8217;t appear the Windows 2000 version of dhcpexim works with Windows Server 2003. So until a new version is released (which may never happen), your only option on Windows Server 2003 is the CLI solution described next.</p>
<p><strong>Using a command-line interface</strong></p>
<p>The following command exports DHCP Server configuration to c:\dhcp.txt:</p>
<pre>&gt;  netsh dhcp server export C:\dhcp.txt all</pre>
<p>To import this configuration on another server, copy c:\dhcp.txt to the target server and run the following command on that server (I&#8217;m assuming the DHCP Server has already been installed):</p>
<pre>&gt;  netsh dhcp server import C:\dhcp.txt all</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/importing-and-exporting-dhcp-server-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Viewing the Network Configuration</title>
		<link>http://www.xiitec.com/blog/2008/02/13/viewing-the-network-configuration/</link>
		<comments>http://www.xiitec.com/blog/2008/02/13/viewing-the-network-configuration/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 00:42:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=125</guid>
		<description><![CDATA[Using a graphical user interface
&#160;

From the Control Panel, open the Network  Connections applet.
Open the network connection for which you want to view the  settings.
Click the Properties  button.
Click the Configure button to  view network adapter properties. Or double-click Internet Protocol (TCP/IP) to view network  configuration settings.


Using a command-line interface
To view the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using a graphical user interface</strong></p>
<p style="font-weight: bold">&nbsp;</p>
<ol>
<li>From the Control Panel, open the <span class="docEmphBold">Network  Connections</span> applet.</li>
<li>Open the network connection for which you want to view the  settings.</li>
<li>Click the <span class="docEmphBold">Properties</span>  button.</li>
<li>Click the <span class="docEmphBold">Configure</span> button to  view network adapter properties. Or double-click <span class="docEmphBold">Internet Protocol (TCP/IP)</span> to view network  configuration settings.</li>
</ol>
<p><span id="more-125"></span><br />
<strong>Using a command-line interface</strong></p>
<p>To view the list of connections and network configuration on the local  machine, run the following command:</p>
<pre>&gt; ipconfig /all</pre>
<p>To view this information on a remote machine, use the  Sysinternals <span class="docEmphasis">psexec</span><a title="windowsvrckbk-CHP-10-ITERM-4219" name="windowsvrckbk-CHP-10-ITERM-4219"></a> <a title="windowsvrckbk-CHP-10-ITERM-4220" name="windowsvrckbk-CHP-10-ITERM-4220"></a>command:</p>
<pre>&gt; psexec \\<tt><em>&lt;ServerName&gt;</em></tt> -u administrator -p MyPass ipconfig /all</pre>
<p>Another command you can use to view network configuration  information is <span class="docEmphasis">netsh</span>, as shown here:</p>
<pre>&gt; netsh int ip show config</pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code displays the network configuration for all connections.
' ------ SCRIPT CONFIGURATION ------
strComputer = "."
' ------ END CONFIGURATION ---------
set objWMI = GetObject("winmgmts:\\" &amp; strComputer &amp; "\root\cimv2")
set colNAs = objWMI.InstancesOf("Win32_NetworkAdapter")
for each objNA in colNAs
    Wscript.Echo objNA.Name
    Wscript.Echo "  Description:  " &amp; objNA.Description
    Wscript.Echo "  Product Name: " &amp; objNA.ProductName
    Wscript.Echo "  Manufacturer: " &amp; objNA.Manufacturer
    Wscript.Echo "  Adapter Type: " &amp; objNA.AdapterType
    Wscript.Echo "  AutoSense:    " &amp; objNA.AutoSense
    Wscript.Echo "  MAC Address:  " &amp; objNA.MACAddress
    Wscript.Echo "  Maximum Speed:" &amp; objNA.MaxSpeed
    Wscript.Echo "  Conn Status:  " &amp; objNA.NetConnectionStatus
    Wscript.Echo "  Service Name: " &amp; objNA.ServiceName
    Wscript.Echo "  Speed:        " &amp; objNA.Speed

    set colNACs = objWMI.ExecQuery(" select * from " &amp; _
                                   " Win32_NetworkAdapterConfiguration " &amp; _
                                   "  where Index = " &amp; objNA.Index)
    ' There should only be one item in colNACs
    for each objNAC in colNACs
       if IsArray(objNAC.IPAddress) then
          for each strAddress in objNAC.IPAddress
             Wscript.Echo "  Network Addr: " &amp; strAddress
          next
       end if
       Wscript.Echo "  IP Metric:    " &amp; objNAC.IPConnectionMetric
       Wscript.Echo "  IP Enabled:   " &amp; objNAC.IPEnabled
       Wscript.Echo "  Filter:       " &amp; objNAC.IPFilterSecurityEnabled
       Wscript.Echo "  Port Security:" &amp; objNAC.IPPortSecurityEnabled
       if IsArray(objNAC.IPSubnet) then
          for each strAddress in objNAC.IPSubnet
             Wscript.Echo "  Subnet Mask:  " &amp; strAddress
          next
       end if
       if IsArray(objNAC.DefaultIPGateway) then
          for each strAddress in objNAC.DefaultIPGateway
             Wscript.Echo "  Gateway Addr: " &amp; strAddress
          next
       end if
       Wscript.Echo "  Database Path:" &amp; objNAC.DatabasePath
       Wscript.Echo "  DHCP Enabled: " &amp; objNAC.DHCPEnabled
       Wscript.Echo "  Lease Expires:" &amp; objNAC.DHCPLeaseExpires
       Wscript.Echo "  Lease Obtained: " &amp; objNAC.DHCPLeaseObtained
       Wscript.Echo "  DHCP Server:  " &amp; objNAC.DHCPServer
       Wscript.Echo "  DNS Domain:   " &amp; objNAC.DNSDomain
       Wscript.Echo "  DNS For WINS: " &amp; objNAC.DNSEnabledForWINSResolution
       Wscript.Echo "  DNS Host Name:" &amp; objNAC.DNSHostName
       if IsArray(objNAC.DNSDomainSuffixSearchorder) then
          for each strName in objNAC.DNSDomainSuffixSearchOrder
             Wscript.Echo "  DNS Suffix Search Order: " &amp; strName
          next
       end if
       if IsArray(objNAC.DNSServerSearchOrder) then
          for each strName in objNAC.DNSServerSearchOrder
             Wscript.Echo "  DNS Server Search Order: " &amp; strName
          next
       end if
       Wscript.Echo "  Domain DNS Reg Enabled: " &amp; _
                       objNAC.DomainDNSRegistrationEnabled
       Wscript.Echo "  Full DNS Reg Enabled: " &amp; _
                       objNAC.FullDNSRegistrationEnabled
       Wscript.Echo "  LMHosts Lookup:      " &amp; objNAC.WINSEnableLMHostsLookup
       Wscript.Echo "  WINS Lookup File:    " &amp; objNAC.WINSHostLookupFile
       Wscript.Echo "  WINS Scope ID:       " &amp; objNAC.WINSScopeID
       Wscript.Echo "  WINS Primary Server: " &amp; objNAC.WINSPrimaryServer
       Wscript.Echo "  WINS Secondary:      " &amp; objNAC.WINSSecondaryServer
    next

    WScript.Echo
next</pre>
<p>There are several different ways to get at the host network  configuration, as shown in the Solution section. And since the scripting  solution used WMI, there is yet another way using <em>wmic</em>. Here are two  commands that display some of the properties of the  <tt>Win32_NetworkAdapter</tt> and <tt>Win32_NetworkAdapterConfiguration</tt> WMI  clas-ses, respectively:</p>
<pre>&gt; wmic nic list brief
&gt; wmic nicconfig list brief</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/13/viewing-the-network-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

