<?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; domain controller</title>
	<atom:link href="http://www.xiitec.com/blog/tag/domain-controller/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>Finding the Closest Domain Controller</title>
		<link>http://www.xiitec.com/blog/2009/01/05/finding-the-closest-domain-controller-2/</link>
		<comments>http://www.xiitec.com/blog/2009/01/05/finding-the-closest-domain-controller-2/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 00:42:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[System administration]]></category>
		<category><![CDATA[domain controller]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=234</guid>
		<description><![CDATA[Using a command-line interface
The following command finds the closest domain controller in the specified domain  (&#60;DomainDNSName&#62;);  that is, a domain controller that is located in the same site or in the  closest site if a local DC is not available. By default, it will return  the closest DC for the computer [...]]]></description>
			<content:encoded><![CDATA[<h3 id="title-IDAD0AYM">Using a command-line interface</h3>
<p>The following command finds the closest domain controller in the specified domain  (<em>&lt;DomainDNSName&gt;</em>);  that is, a domain controller that is located in the same site or in the  closest site if a local DC is not available. By default, it will return  the closest DC for the computer nltest is being run from, but you can optionally use  the /server option to target a remote host. If you are interested in finding a DC within a particular site regardless of  whether it is the closest DC to you, you can also optionally specify the  /site option to find a domain controller that belongs to a particular  site.</p>
<pre>	&gt; nltest /dsgetdc:<em>&lt;DomainDNSName&gt;</em> [/site:<em>&lt;SiteName&gt;</em>] [/server:<em>&lt;ClientName&gt;</em>]</pre>
<p><span id="more-234"></span></p>
<h3 id="title-IDAL1AYM">Using VBScript</h3>
<pre>	' This code finds the closest domain controller in the domain</pre>
<pre>' that the computer running the script is in.</pre>
<pre>' ------ SCRIPT CONFIGURATION ------</pre>
<pre>strDomain = "&lt;DomainDNSName&gt;" ' e.g. emea.rallencorp.com</pre>
<pre>' ------ END CONFIGURATION --------

	set objIadsTools = CreateObject("IADsTools.DCFunctions")</pre>
<pre>objIadsTools.DsGetDcName( Cstr(strDomain) )</pre>
<pre>Wscript.Echo "DC: " &amp; objIadsTools.DCName</pre>
<pre>Wscript.Echo "DC Site: " &amp; objIadsTools.DCSiteName</pre>
<pre>Wscript.Echo "Client Site: " &amp; objIadsTools.ClientSiteName</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2009/01/05/finding-the-closest-domain-controller-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking Whether a Windows 2000 Domain Controller Can Be Upgraded to Windows Server 2003</title>
		<link>http://www.xiitec.com/blog/2009/01/02/checking-whether-a-windows-2000-domain-controller-can-be-upgraded-to-windows-server-2003/</link>
		<comments>http://www.xiitec.com/blog/2009/01/02/checking-whether-a-windows-2000-domain-controller-can-be-upgraded-to-windows-server-2003/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 00:51:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Active directory]]></category>
		<category><![CDATA[domain controller]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=233</guid>
		<description><![CDATA[Using a graphical user  interface
Insert a Windows Server 2003 CD into the Windows 2000 domain  controller or map a drive to the files contained on the CD. Run the following  command from the \i386 directory:
	&#62; winnt32 /checkupgradeonly
Using a command-line interface
To produce a compatibility report from the command line, first  you need [...]]]></description>
			<content:encoded><![CDATA[<h4>Using a graphical user  interface</h4>
<p>Insert a Windows Server 2003 CD into the Windows 2000 domain  controller or map a drive to the files contained on the CD. Run the following  command from the \<span class="docEmphasis">i386</span> directory:</p>
<pre>	&gt; winnt32 /checkupgradeonly</pre>
<h4>Using a command-line interface</h4>
<p>To produce a compatibility report from the command line, first  you need to create a text file containing the following <a title="idx-CHP-2-0262" name="idx-CHP-2-0262"></a>information:</p>
<pre>[Unattended]</pre>
<pre>Win9xUpgrade = Yes</pre>
<pre></pre>
<pre>[Win9xUpg]ReportOnly = Yes

SaveReportTo = "\\server1\upgradereports\"</pre>
<p>Save this file as <em>unattend.txt</em>, and then run the  following from the command-line:</p>
<pre>	&gt; winnt32 /checkupgradeonly /unattend:c:\unattend.txt</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2009/01/02/checking-whether-a-windows-2000-domain-controller-can-be-upgraded-to-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing Domain Controllers and Global Catalog Servers Used by an Exchange Server</title>
		<link>http://www.xiitec.com/blog/2008/11/10/listing-domain-controllers-and-global-catalog-servers-used-by-an-exchange-server/</link>
		<comments>http://www.xiitec.com/blog/2008/11/10/listing-domain-controllers-and-global-catalog-servers-used-by-an-exchange-server/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 23:18:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exchange server 2003]]></category>
		<category><![CDATA[domain controller]]></category>
		<category><![CDATA[exchange server]]></category>
		<category><![CDATA[global catalog]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=227</guid>
		<description><![CDATA[Exchange is very dependent upon Active Directory domain controllers. The list of domain controllers currently being used by a server is usually one of the first pieces of information you should gather when you encounter an Exchange issue. While this can be done through the GUI, it is much easier to get the data through [...]]]></description>
			<content:encoded><![CDATA[<p>Exchange is very dependent upon Active Directory domain controllers. The list of domain controllers currently being used by a server is usually one of the first pieces of information you should gather when you encounter an Exchange issue. While this can be done through the GUI, it is much easier to get the data through a script.</p>
<p><span id="more-227"></span><br />
While the GUI provides only a listing of the domain controllers and global catalog servers in use, the WMI provider offers considerably more information. This additional information can be extremely important during troubleshooting, so you should have this script or something similar available to your Exchange Admins for troubleshooting purposes.</p>
<h3> Using a graphical user interface</h3>
<ol >
<li> Open the Exchange System Manager (ESM)  snap-in.</li>
<li> In the left pane, browse to the <span class="docEmphBold">Servers</span> container.</li>
<li> Right-click on the target server and select <span class="docEmphBold">Properties</span>.</li>
<li> Click on the <span class="docEmphBold">Directory</span> <span class="docEmphBold">Access</span> tab and view the domain controllers being  used.</li>
</ol>
<h3>Using VBScript</h3>
<pre>' This code enumerates domain controllers being used.' ------ SCRIPT CONFIGURATION ------

strComputer = "<tt><em>&lt;Exchange Server&gt;</em></tt>" 'e.g., ExchServer2

' ------ END CONFIGURATION ---------set objWMI = GetObject("winmgmts:\\" &amp; strComputer &amp; _

"\root\MicrosoftExchangeV2")

set objDCList = objWMI.ExecQuery("Select * from Exchange_DSAccessDC",,48)

for each objDc in objDCList

Wscript.Echo "DCName: objDc.name"

strTemp = "Automatic"

if (dc.ConfigurationType=0) then strTemp="Manual"

Wscript.Echo "  Selection: " &amp; strTemp

Wscript.Echo "  Is Fast  : " &amp; objDc.IsFast

Wscript.Echo "  In Sync  : " &amp; objDc.IsInSync

Wscript.Echo "  Is Up    : " &amp; objDc.IsUp

Wscript.Echo "  Ldap Port: " &amp; objDc.LDAPPort

strTemp = "Global Catalog"

if (objDc.type=0) then strTemp = "Config"

if (objDc.type=1) then strTemp = "Local Domain"

Wscript.Echo "  Role     : " &amp; strTemp

Wscript.Echo "-----------"

Next

Wscript.Echo "Script completed successfully.</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/11/10/listing-domain-controllers-and-global-catalog-servers-used-by-an-exchange-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding the Closest Domain Controller</title>
		<link>http://www.xiitec.com/blog/2008/02/28/finding-the-closest-domain-controller/</link>
		<comments>http://www.xiitec.com/blog/2008/02/28/finding-the-closest-domain-controller/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 23:24:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Active directory]]></category>
		<category><![CDATA[domain controller]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=191</guid>
		<description><![CDATA[The DC locator process as described in MS KB 314861 and MS KB 247811 defines how clients find the closest domain controller. The process uses the site topology stored in Active Directory to calculate the site where a particular client is. After the client site has been identified, it is a matter of finding a [...]]]></description>
			<content:encoded><![CDATA[<p>The DC locator process as described in MS KB 314861 and MS KB 247811 defines how clients find the closest domain controller. The process uses the site topology stored in Active Directory to calculate the site where a particular client is. After the client site has been identified, it is a matter of finding a domain controller that is either a member of that same site or that is covering that site.</p>
<p><span id="more-191"></span></p>
<p>The Microsoft DsGetDcName Directory Services API method implements the DC Locator process, but unfortunately cannot be used directly from a scripting language, such as VBScript. The IADsTools interface provides a wrapper around DsGetDcName, which is what I used. The nltest /dsgetdc command is also a wrapper around the DsGetDcName method, and is a handy tool when troubleshooting client issues related to finding an optimal domain controller.</p>
<p><strong>Using a command-line interface</strong></p>
<p>The following command finds the closest domain controller in the specified domain (<domaindnsname>). By default, it will return the DC closest to the computer nltest is being run from, but you can optionally use the /server option to target a remote computer. You can also optionally specify the /site option to find a domain controller that belongs to a particular site.</domaindnsname></p>
<pre>&gt; nltest /dsgetdc:<domaindnsname> [/site:<sitename>] [/server:<clientname>]</clientname></sitename></domaindnsname></pre>
<p><strong>Using VBScript</strong></p>
<pre>' This code finds the closest domain controller in the domain
 ' that the computer running the script is in.
 ' ------ SCRIPT CONFIGURATION ------
 strDomain = "<domaindnsname>"  ' e.g., emea.rallencorp.com
 ' ------ END CONFIGURATION ---------</domaindnsname></pre>
<pre>set objIadsTools = CreateObject("IADsTools.DCFunctions")
 objIadsTools.DsGetDcName( Cstr(strDomain) )
 Wscript.Echo "DC: " &amp; objIadsTools.DCName
 Wscript.Echo "DC Site: " &amp; objIadsTools.DCSiteName
 Wscript.Echo "Client Site: " &amp; objIadsTools.ClientSiteName</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/28/finding-the-closest-domain-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running DHCP Server on a Domain Controller</title>
		<link>http://www.xiitec.com/blog/2008/02/22/running-dhcp-server-on-a-domain-controller/</link>
		<comments>http://www.xiitec.com/blog/2008/02/22/running-dhcp-server-on-a-domain-controller/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 20:45:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DHCP]]></category>
		<category><![CDATA[DHCP server]]></category>
		<category><![CDATA[domain controller]]></category>

		<guid isPermaLink="false">http://www.xiitec.com/blog/?p=175</guid>
		<description><![CDATA[By default, the DHCP Server runs under the credentials of the computer account that is hosting it. If it happens to be running on a domain controller, it runs under the domain controller&#8217;s computer account. A domain controller has full permissions over any Active Directory-integrated zones it replicates. The result of the DHCP Server running [...]]]></description>
			<content:encoded><![CDATA[<p>By default, the DHCP Server runs under the credentials of the computer account that is hosting it. If it happens to be running on a domain controller, it runs under the domain controller&#8217;s computer account. A domain controller has full permissions over any Active Directory-integrated zones it replicates. The result of the DHCP Server running on a domain controller means that if the DHCP Server has been configured to dynamically register DNS records on behalf of clients, it can potentially update any record stored in an Active Directory-integrated zone. Ultimately, that leaves the zones vulnerable to name hijacking, whereby a client can cause records to be overwritten that shouldn&#8217;t be. This can cause all sorts of havoc if an attacker starts replacing important records in your zones.</p>
<p><span id="more-175"></span></p>
<p>Microsoft recommends that you avoid this completely by not running the DHCP Server on a domain controller. But as of Windows 2000 Service Pack 1, you can work around this issue by configuring the DHCP Server to use alternate credentials when making dynamic updates. The account doesn&#8217;t need any special permissions in order to dynamically update records. After you&#8217;ve configured alternate credentials, check the event log for any errors pertaining to logon issues (perhaps the username or password are incorrect) or dynamic update errors.</p>
<p>If you back up a DHCP Server&#8217;s configuration using NTBackup, DNS credentials are not backed up. This is done intentionally to prevent someone from hijacking names by restoring a DHCP Server from backup. You must manually restore the DNS credentials if you have to restore a DHCP Server.</p>
<p><strong> Using a graphical user interface</strong></p>
<ol>
<li> Open the DHCP snap-in.</li>
<li>In the left pane, right-click on DHCP and select Add Server.</li>
<li>Type in the name of the DHCP Server you want to target and click OK.</li>
<li>Right-click the server and select Properties.</li>
<li>Click the Advanced tab.</li>
<li>Click the Credentials button.</li>
<li>Enter the username, domain, and password for the account you want to use.</li>
<li>Click OK until all dialog windows are closed.</li>
</ol>
<p><strong>Using a command-line interface</strong></p>
<p>Use the following command to display the current DNS credentials used by the DHCP Server:</p>
<pre>&gt; netsh dhcp server show dnscredentials</pre>
<p>Use the following command to configure new DNS credentials on the DHCP Server:</p>
<pre>&gt; netsh dhcp server set dnscredentials <username> <domain>
<password> </password></domain></username></pre>
<p>Use the following command to remove the DNS credentials used by the DHCP Server:</p>
<pre>&gt; netsh dhcp server delete dnscredentials dhcpfullforce</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xiitec.com/blog/2008/02/22/running-dhcp-server-on-a-domain-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

