<?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>Tim the Tech &#187; AD</title>
	<atom:link href="http://www.timthetech.com/tag/ad/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.timthetech.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sat, 17 Jul 2010 02:41:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Adrecyclebin Gui ADRecycleBin.exe (Active Directory Recycle Bin)</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/adrecyclebin-gui-adrecyclebin-exe-active-directory-recycle-bin/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/adrecyclebin-gui-adrecyclebin-exe-active-directory-recycle-bin/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 02:59:32 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=292</guid>
		<description><![CDATA[ADRecycleBin.exe (Active Directory Recycle Bin) allows administrators to quickly restore deleted Active Directory objects via an easy to use GUI (Graphical User Interface). This is a free Active Directory Recycle Bin tool. If you or a colleague happen to mistakenly delete an object in Active Directory the results can be disastrous. ADRecycleBin allows administrators to [...]]]></description>
			<content:encoded><![CDATA[<p>ADRecycleBin.exe (Active Directory Recycle Bin) allows administrators to quickly restore deleted Active Directory objects via an easy to use GUI (Graphical User Interface). This is a free Active Directory Recycle Bin tool.</p>
<p>If you or a colleague happen to mistakenly delete an object in Active Directory the results can be disastrous. ADRecycleBin allows administrators to quickly find and restore deleted objects in Active Directory. If you are running Active Directory in Windows 2008 R2 native mode you can enable the Active Directory Recycle Bin. If you are running Active Directory in an earlier mode you can re-animate deleted objects.</p>
<p>Features</p>
<p>Supports Windows 2008 R2 Active Directory Recycle Bin technology<br />
Supports Object reanimation in earlier versions of Active Directory<br />
Review deleted objects<br />
Restore multiple objects at the same time<br />
An Example<br />
Consider the following scenario. We have some users, computers and a group in an Organization Unit called Richmond Hill:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-1.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-1.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-11.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-11.jpg"><img class="alignleft size-full wp-image-331" title="Adrecyclebin 1" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-11.jpg" alt="" width="597" height="232" /></a></p>
<p>I decide to delete an object ignoring all of the prompts. First prompt:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-2.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-2.jpg"><img class="alignleft size-medium wp-image-322" title="Adrecyclebin 2" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-2-300x107.jpg" alt="" width="300" height="107" /></a></p>
<p>As well as the second prompt:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-3.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-3.jpg"><img class="alignnone size-medium wp-image-323" title="Adrecyclebin 3" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-3-300x198.jpg" alt="" width="300" height="198" /></a></p>
<p>To make things worse, the computer object was a very important shared PC with a ton of mission-critical applications, and without this object in Active Directory, no one can log on to this PC with their domain ID. So how do we get these deleted objects back?</p>
<p>Using ADRecycleBin.exe</p>
<p>Firstly, before you run ADRecycleBin.exe ensure that your account has the appropriate privileges to restore objects in Active Directory. You will want to run the tool in the same domain where you plan on restoring the objects. Launch ADRecycleBin.exe and click the Load Deleted Objects button:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-4.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-4.jpg"><img class="alignnone size-medium wp-image-324" title="Adrecyclebin 4" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-4-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>Unless you intend on restoring other types of objects other than OUs, Users, Computer or groups, I recommend you leave the Load Filter checkboxes as the default. Then click the Load Deleted Objects button. This will load all of the deleted objects detected based on the Load Filter checkboxes:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-5.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-5.jpg"><img class="alignnone size-medium wp-image-325" title="Adrecyclebin 5" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-5-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>To restore all of the objects from our Richmond Hill OU click on one of the child objects, for example, I have selected the group called: LDAP://CN=ROL-RichmondHill IT Managers\0ADEL:86249fc3-ca0e-4614-b258-65fb15ff9ab7,CN=Deleted Objects,DC=beta,DC=local. Then I right-click and select the Select All menu item:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-6.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-6.jpg"><img class="alignnone size-medium wp-image-326" title="Adrecyclebin 6" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-6-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>This will check all of the siblings. Incidentally, selecting a child node will automatically check its parent. Once we have selected the objects we wish to bring back from the dead, we click the Restore Checked Objects button:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-7.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-7.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-71.jpg"><img class="alignnone size-medium wp-image-337" title="Adrecyclebin 7" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-71-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>This will initiate the restore process. When this process is complete a new window will open showing us a summary of the Active Directory deleted objects that were restored:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-8.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-8.jpg"><img class="alignnone size-medium wp-image-328" title="Adrecyclebin 8" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-8-300x228.jpg" alt="" width="300" height="228" /></a></p>
<p>From this window we can copy and paste the messages of importance or export the results to a csv file to let others know what was restored:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-9.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-91.jpg"><img class="alignnone size-medium wp-image-339" title="Adrecyclebin 9" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-91-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>When we close the Restore Summary window the deleted objects will be enumerated again:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-10.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-101.jpg"><img class="alignnone size-medium wp-image-340" title="Adrecyclebin 10" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-101-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>Our OU called Richmond Hill has now been successfully restored:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Adrecyclebin-Gui-11.jpg"></a><a href="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-111.jpg"><img class="alignnone size-medium wp-image-341" title="Adrecyclebin 11" src="http://www.timthetech.com/wp-content/uploads/2010/04/Adrecyclebin-111-300x116.jpg" alt="" width="300" height="116" /></a></p>
<p>DOWNLOAD THE FREE TOOL</p>
<p>http://www.overall.ca/index.php?option=com_docman&amp;task=doc_download&amp;gid=78&amp;Itemid=11</p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/adrecyclebin-gui-adrecyclebin-exe-active-directory-recycle-bin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PDC chaining</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/pdc-chaining/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/pdc-chaining/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 06:57:27 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[PDC chaining]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=277</guid>
		<description><![CDATA[Imagine you’re in a multi-site environment that has several DCs in all sites across the nation. Imagine further you have a user John who calls you monday morning. You’re setting in the headquarters. “Dude”, he asks, “can you reset my password? My weekend’s been so hard. They sent me to this branch office where they [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine you’re in a multi-site environment that has several DCs in all sites across the nation. Imagine further you have a user John who calls you monday morning. You’re setting in the headquarters. “Dude”, he asks, “can you reset my password? My weekend’s been so hard. They sent me to this branch office where they party all night..”. Well, you feel like that’s okay and after you asked John some additional questions to verify that it is really John you’re talking to, you reset the password.</p>
<p>Immediately after that, John tries to authenticate and &#8211; he succeeds. He’s prompted to change his password, does so and logs successfully in. “Thanks buddy”, he ends the conversation. You scratch your head wondering how that password got replicated so fast. You’re sitting in the headquarters doing the change and John is in some branch office which has a pretty tight replication schedule and intervall &#8211; rep takes place every three hours between headquater and John’s branch. You verify that “Active Directory Users and Computers” you used to reset John’s password with is “connected” to a local headquarter-DC. You scratch your head. How’s that possible? How’s password reset getting replicated so fast to the branch DC?</p>
<p>The answer lies in PDC chaining. The password isn’t immediately replicated to the branch DC &#8211; the mechanism is different. Once a domain controller receives an authentication request, it checks for the credentials provided. In our scenario, the password hasn’t replicated yet to John’s branch office and as John tries the password we manually resetted it to, it fails. Smart-pants branch-DC doesn’t give up though and the next step it tries is ask the PDC emulator-FSMO-holder-DC for help. It chains the authentication request to the PDC. The PDC checks the credentials and &#8211; since it got our resetted password already, it replies to the branch-DC that the password is valid. In addition to the “pass is valid” reply to the branch DC, it actually sends the current pass in a follwing message.</p>
<p>Branch-DC now lets John authenticated, but provides him with the “Change password” dialog to pick a new password. After that, John is allowed to log on to his machine.</p>
<p>What basically happened was that branch-DC, evaluating John’s password to “not valid”, forwarded John’s auth request to the PDC which evaluated to true and responded accordingly. After that, the PDC pushes the John’s current credentials to the branch-DC so that it’s up-to-date. This “push” isn’t anything like immediate rep or urgent-rep but a special LDAP operation (Single object replication).</p>
<p>So — why’s branch-DC asking PDC to re-check John’s credentials? Branch-DC knows what all DCs know and that is that PDC always has the valid password* for all users. Once a password gets changed, the DC that handles the password change request pushes the new update via a special RPC call to the PDC to update the password. The PDC is the first to know about password changes and password resets. Again, this isn’t done with pure replication but with a special RPC call to the PDC.</p>
<p>* Exceptions are environments that don’t allow direct DC communication (e.g. a meshed network). In cases where DCs cannot reach the PDC directly &#8211; either for chaining an auth request or RPC-pushing the password &#8211; the request fails. In those cases, the passwords go along their way through normal replication. Password changes aren’t pushed directly and auth requests are evaluated as “invalid” if the PDC isn’t reachable.</p>
<p>The process is here in a small picture:</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/PDC-chaining.png"><img class="alignnone size-medium wp-image-278" title="PDC chaining" src="http://www.timthetech.com/wp-content/uploads/2010/03/PDC-chaining-300x174.png" alt="" width="300" height="174" /></a></p>
<p>1) An admin in site B resets a user’s password in site B.</p>
<p>(2) The DC pushes the new password via an RPC call to the PDC.</p>
<p>(3) At the same time, the user in site C tries to authenticate using the new password. DC-C checks the password with its local database and comes to find that the password isn’t correct (the password reset hasn’t replicated to DC-C).</p>
<p>(4) DC-C forwards the authentication request to the PDC which knows the new password because of the RPC call. It reponds to DC-C, that the password is valid.</p>
<p>(5) Immediately after that, it pushes the new user password via an LDAP operation to DC-C so that DC-C’s database is updated (regarding the user’s password only!). This is not done by normal replication means &#8211; it’s a special push.</p>
<p>(6) DC-C allows the user to authenticate.</p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/pdc-chaining/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search for deleted user objects in AD</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/search-for-deleted-user-objects-in-ad/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/search-for-deleted-user-objects-in-ad/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 06:53:56 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=274</guid>
		<description><![CDATA[I am trying to browse for deleted sids. I am using ADFIND to do my search. here is the what i am using adfind -b “cn=deleted objects,dc=domain,dc=com” -f “(&#38; (objectclass=user)(objectcategory=person))” objectsid So — looking at the command, it told me that the guy was querying the “Deleted Objects” container (that is the container all objects [...]]]></description>
			<content:encoded><![CDATA[<p>I am trying to browse for deleted sids. I am using ADFIND to do my  search. here is the what i am using<br />
adfind -b “cn=deleted objects,dc=domain,dc=com” -f “(&amp;  (objectclass=user)(objectcategory=person))” objectsid<br />
So — looking at the command, it told me that the guy was querying the  “Deleted Objects” container (that is the container all objects that are  marked for deletion are moved into) for user objects. You need to query  objectClass AND objectCategory in order to get users only —  objectClass=user would also return computer objects as the object model  of the AD Schema makes computers be a user and implement computer  specific attributes (computers inherit from the user class, basically).</p>
<p>When firing the command at my box, I didn’t get any results either:</p>
<p>C:\Windows\system32&gt;adfind -b “CN=Deleted</p>
<pre>Objects,DC=intern,DC=frickelsoft,DC=net” -f”&amp;(objectClass=user)(objectCategory=person)” objectSID

AdFind V01.37.00cpp Joe Richards (joe@joeware.net) June 2007

Using server: dc.intern.frickelsoft.net:389Directory: Windows Server 2003

0 Objects returned</pre>
<p>Looking at the query, I remembered that deleted objects aren’t deleted  right away but are moved to the “Deleted Objects” container, get a new  name and are stripped from most of their attributes. Only a few of them  are preserved. Knowing that objectClass is one of the attributes that is  preserved, let’s see whether objectCategory is. For that, we need to  get the “searchFlags” attribute of the schema object here. The  searchFlags bitmask tells us, whether the attribute is preserved on  deletion &#8211; bit #3 (decimal = <img src='http://www.timthetech.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> as described in</p>
<pre>http://msdn.microsoft.com/en-us/library/ms679765(VS.85).aspx and  http://www.frickelsoft.net/blog/?p=151</pre>
<p>is the one we’re looking for:</p>
<p>C:\Windows\system32&gt;adfind -sc s:objectCategory searchFlags</p>
<pre>AdFind V01.37.00cpp Joe Richards (joe@joeware.net) June 2007

Using server: dc.intern.frickelsoft.net:389

Directory: Windows Server 2003

Base DN: CN=Schema,CN=Configuration,DC=intern,DC=frickelsoft,DC=net

dn:CN=Object-Category,CN=Schema,CN=Configuration,DC=intern,DC=frickelsoft,DC=net

&gt;searchFlags: 1 [INDEX(1)]</pre>
<p>We can see that searchFlags for “objectCategory” is 1 which resolves to  “put attribute into index”.</p>
<p>Hmm..as we thought, not preserved — but let’s check objectClass, too:</p>
<p>C:\Windows\system32&gt;adfind -sc s:objectClass searchFlags</p>
<pre>AdFind V01.37.00cpp Joe Richards (joe@joeware.net) June 2007

Using server: dc.intern.frickelsoft.net:389

Directory: Windows Server 2003

Base DN: CN=Schema,CN=Configuration,DC=intern,DC=frickelsoft,DC=net

dn:CN=Object-Class,CN=Schema,CN=Configuration,DC=intern,DC=frickelsoft,DC=net

&gt;searchFlags: 9 [INDEX(1);PRESERVE TOMBSTONE(8)]

1 Objects returned</pre>
<p>Okay, that’s a nine which resolves to “put into index” (=1) and  “preserve on deletion” (=8, so 1+8 = 9). I must admit you could have  looked that one up too on MSDN:</p>
<pre>http://msdn.microsoft.com/en-us/library/ms679011(VS.85).aspx</pre>
<p>- objectCategory has searchFlags “1″ everywhere — but hey, we wanted to  use ADfind, right? It makes sense now that we don’t get any results. We  could query now for “objectClass=user” only, but that’s probably not  what we want, as computers are part of the “user” objectClass, too.</p>
<p>So the query won’t work as we’re filtering for an attribute that isn’t  there any more. So — what can we do there?</p>
<p>Change our search to only display objectClass=user objects and NOT  objectClass=computers Unfortunately, we don’t get any results for that,  as seen in the above output. Hum… what did go wrong?</p>
<p>Looking at the ADfind help at</p>
<pre>http://www.joeware.net/freetools/tools/adfind/usage.htm (or /?),</pre>
<p>we can see that we need the “-showdel” switch to make ADFind issue the  “Show deleted objects” LDAP control to the server. Our query looks like  this now:</p>
<p>C:\Windows\system32&gt;adfind -b “CN=Deleted</p>
<pre>Objects,DC=intern,DC=frickelsoft,DC=ne

t” -f “&amp;(objectClass=user)(!objectClass=computer)” -showdel objectSID

AdFind V01.37.00cpp Joe Richards (joe@joeware.net) June 2007

Using server: dc.intern.frickelsoft.net:389

Directory: Windows Server 2003

dn:CN=User, Created_0111200813120�ADEL:5d0f95e6-516a-474c-9a35-c479a8d80ff8,CN

=Deleted Objects,DC=intern,DC=frickelsoft,DC=net

&gt;objectSid: S-1-5-21-3722298651-1274886394-2888734146-1603

dn:CN=User, Created_0111200813140�ADEL:73ab9ee1-10c5-4d99-9abc-5d21ca274ef4,CN

=Deleted Objects,DC=intern,DC=frickelsoft,DC=net

&gt;objectSid: S-1-5-21-3722298651-1274886394-2888734146-1604

dn:CN=User, Created_0111200813150�ADEL:c7393437-7868-481e-9633-7cd49c62fb36,CN

=Deleted Objects,DC=intern,DC=frickelsoft,DC=net

&gt;objectSid: S-1-5-21-3722298651-1274886394-2888734146-1605

dn:CN=User, Created_0111200813160�ADEL:8f0fcce6-0f6e-4802-8faa-12e5ae2d48a3,CN

=Deleted Objects,DC=intern,DC=frickelsoft,DC=net

&gt;objectSid: S-1-5-21-3722298651-1274886394-2888734146-1606

4 Objects returned</pre>
<p>If you don’t know what ADfind is or what ADMod does, you really should  check joe’s repository of cool tools at</p>
<pre>http://www.joeware.net</pre>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/search-for-deleted-user-objects-in-ad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring and Trouble shooting the Active Directory through Replication</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/monitoring-and-trouble-shooting-the-active-directory-through-replication/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/monitoring-and-trouble-shooting-the-active-directory-through-replication/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 06:51:34 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=270</guid>
		<description><![CDATA[Replication may be defined as the same data carried out by the same system or different platform system.When using a directory service as active directory the same information is carried out by all the domain controllers ,so when you want to contact a domain controller for use, there is always a local copy for use [...]]]></description>
			<content:encoded><![CDATA[<p>Replication may be defined as the same data carried out by the same system or different platform system.When using a directory service as active directory the same information is carried out by all the domain controllers ,so when you want to contact a domain controller for use, there is always a local copy for use so that requests do not have to be sent over the wide area network.</p>
<p>Replication of the active directory operates within the directory service component of the security sub system.This component is called Ntdsa.dll and accessed through the LDAP protocol.Ntdsa.dll runs as a part of the Local security authority , which runs as Lsass.exe.Updates are transported by the IP over the RPC protocol.</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Monitoring-and-Trouble-shooting-the-Active-Directory-through-Replication1.jpg"><img class="alignnone size-medium wp-image-271" title="Monitoring and Trouble shooting the Active Directory through Replication1" src="http://www.timthetech.com/wp-content/uploads/2010/03/Monitoring-and-Trouble-shooting-the-Active-Directory-through-Replication1-300x265.jpg" alt="" width="300" height="265" /></a></p>
<p>In the above figure , you can see a common network (2 sites connected via a wan link) with a domain controller in each location</p>
<p>The health and maximized performance depends upon the smooth replication process .If you have problems , with replication you will not only have login problems , but also poor performance .<br />
Now consider a common problem , with a failed network link</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Monitoring-and-Trouble-shooting-the-Active-Directory-through-Replication2.jpg"><img class="alignnone size-medium wp-image-272" title="Monitoring and Trouble shooting the Active Directory through Replication2" src="http://www.timthetech.com/wp-content/uploads/2010/03/Monitoring-and-Trouble-shooting-the-Active-Directory-through-Replication2-300x215.jpg" alt="" width="300" height="215" /></a></p>
<p>ISP &#8216;s and telecom service providers ocassionally have problems and service can be interrupted . This of course stops the communication between the domain controller&#8217;s therefore also severing the repolication process .This can prevent the synchronization of information between the domain controller&#8217;s and possibly cause the corruption or other problems .</p>
<p>The best thing is to provide abckup link such as ISDN , is a digital wan technology used to faciliate connections between the sites .More commonly Used today for disaster recovery,ISDN still has a place in today&#8217;s market place.</p>
<p>Here are the several steps to trouble shoot active directory</p>
<p>Verifing the Network Connectivity</p>
<p>Inorder to have the replication process properly the Network connectivity must be ina proper way. Although , iodeally all domain controllers would be connected by high -pass and redunat LAN and WAN links this rarely the case for larger deployments and for most companies that utilize slow WAN links that aren&#8217;t recoverable from disaster .<br />
In real world, deployments, analog /dial up and slow connections are common ,<br />
if you have verified that replication toplogy is set up properly ,you should communicate that servers are able to communicate properly .</p>
<p>Verifing the router and firewall configurations .</p>
<p>When building a secure network most times controls are placed on the network devices to filter the traffic going form place to place .The most coomonly tool used for controlling the traffivc is firewall.A fire wall usually dedicated to only protecting the perimeter so it is designed to do that it only minimizes the risk.<br />
Firewalls are used to restrict the types of traffic that can be transferred over the networks.Their main use is to prevent unauthorized users from transferring the information .</p>
<p>Network Ports used by the Active directory Replication:</p>
<p>RPC replication uses dynamic port mapping as per default setting .When you need to connect an RPC end point during active directory replication ,RPC uses TCP port 135. RPC on the client contacts the RPC endpoint mapper on the server a well known port and randomly allocates high end TCP ports from 1024 to 65536 .The ports which are used by the active directory replication are .</p>
<p>PROTOCOL PORT</p>
<p>LDAP UDP 389<br />
TCP 389</p>
<p>LDAP(SSL) UDP 636<br />
TCP 636</p>
<p>KERBEROS UDP 88<br />
TCP 88</p>
<p>DNS UDP 53<br />
TCP 53</p>
<p>SMB over IP UDP 445<br />
TCP 445</p>
<p>GLOBAL CATALOG SERVER TCP 3268<br />
TCP 3269</p>
<p>Examining the Event logs:</p>
<p>Errors if they occur they show up in the event viewer. When ever there is an error in the replication service the computer writes events to the directory service and file replication service event logs. we may receive events such as</p>
<p>1. Event ID 1311 in the directory service log<br />
2.Event ID 13265 with error &#8220;DNS LOOKUP FAILURE&#8221; or &#8221; RPC SERVER UNAVAILABLE&#8221;.</p>
<p>Verifing the site links:</p>
<p>Before domain controllers in different sites can communicate each other verify the site links are connected properly. If replication doesnt occur properly verify the site links by using the rool repadmin.exe.Use this site tool for correct site links and to display inbound and outbound connections</p>
<p>Verifing the Replication topology:</p>
<p>The active directory sites and services tool allows you to verify the that a replication topology is logically constient.You can perform this task by right clicking the NTDS settings , within a server object and choosing all tasks =&gt; choose replication topology and you can verify the topology by the active directory sites and services tool.</p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/monitoring-and-trouble-shooting-the-active-directory-through-replication/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Compacting the database with an offline defragmenation</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/compacting-the-database-with-an-offline-defragmenation/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/compacting-the-database-with-an-offline-defragmenation/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 06:56:41 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/windows-2008/active-directory/compacting-the-database-with-an-offline-defragmenation/</guid>
		<description><![CDATA[MOC method: 1. Log onto the computer as the default administrator of the domainsomething.local domain. 2. Open a command-prompt window. To enable Directory Services Restore Mode on the next reboot, key bcdedit /set safeboot dsrepair, and then press Enter. 3. Close the command-prompt window and restart the computer. 4. When the computer restarts, log onto [...]]]></description>
			<content:encoded><![CDATA[<p>MOC method:<br />
1.	Log onto the computer as the default administrator of the     domainsomething.local domain.<br />
2.	Open a command-prompt window. To enable Directory Services Restore  Mode on the next reboot, key <strong>bcdedit /set safeboot  dsrepair</strong>, and then press Enter.<br />
3.	Close the command-prompt window and restart the computer.<br />
4.	When the computer restarts, log onto the local computer (not the  domain) using the Directory Services Restore Mode username and password.  The username should be Administrator and the password should be  configured one. The Windows Desktop should indicate that the domain  controller is operating in Safe Mode.<br />
5.	Open a command-prompt window, key <strong>NTDSUTIL</strong>,  and press Enter.<br />
6.	Key<strong> activate instance ntds</strong> and press  Enter.<br />
7.	Key <strong>files</strong> and press Enter. The File  Maintenance prompt is displayed.<br />
8.	Key <strong>?</strong> and press Enter. Notice that you  have several options at this prompt. You can check the Active Directory  database integrity, move the database, and move the database log files.<br />
9.	Key <strong>info</strong> and press Enter. This command  displays the current location of the Active Directory database  (ntds.dit), the backup directory, and the log files directory.<br />
10.	To perform offline compaction of the database, key <strong>compact to c:\</strong> and press Enter. The database is  compacted and you are given directions to replace the existing database.<br />
11.	Key <strong>quit</strong> and press Enter. The ntdsutil  prompt is displayed.<br />
12.	Key <strong>quit</strong> again and press Enter. You are  returned to the command prompt.<br />
13.	Key <strong>move %systemroot%\ntds\ntds.dit c:\ntds.old  and press</strong> Enter. This saves your old Active Directory database  in case you have trouble with the newly compacted database. You can  delete this copy after you verify that the newly compacted database  loads correctly after you restart the computer. Otherwise, you can use  the <strong>ntds.old</strong> file to replace the compacted  database.<br />
14.	Key <strong>move %systemroot%\ntds\*.log c:\ </strong>and  press Enter. This command moves the former Active Directory database  log files to the c:\ drive.<br />
15.	Key m<strong>ove c:\ntds.dit %systemroot%\ntds\ntds.dit</strong> and press Enter. This command places the newly compacted database in  the appropriate location to load when you restart the computer.<br />
16.	Key <strong>dir c:\ntds.old </strong>and press Enter.  Statistics for the previous copy of the Active Directory database are  displayed.<br />
17.	Key <strong>dir %systemroot%\ntds\ntds.dit</strong> and  press Enter. The Active Directory database is compacted. Statistics for  the newly compacted Active Directory database are displayed. Compare the  size of the ntds.old file to the size of the ntds.dit file. You might  not see a size difference between the compacted file and the original  file, because the database in the lab has not had a chance to become  fragmented. On a computer that hosts an Active Directory database that  experiences a large number of changes, you could reduce the amount of  space that the Active Directory database occupied with the compacting  process.<br />
18.	To remove the Directory Services Restore Mode boot option, key<br />
<strong>bcdedit /deletevalue safeboot</strong> and press  Enter. Restart the domain controller.<br />
NOTE	If you encounter Directory Services errors in the Windows Event  Viewer when you restart the computer, you will need to restart again in  Directory Services Restore mode. You will then open a command-prompt  window and key <strong>move c:\ntds.old  %systemroot%\ntds.ntds.dit</strong>, which will replace the compacted  copy of the database with the old copy of the Active Directory database.  You will also need to copy the old log files from the c:\ drive to the  %systemroot%\ntds folder.<br />
19.	If the computer starts properly without errors, log on as the  default administrator of the domainsomething domain. Open a  command-prompt window. Key <strong>del c:\ntds.old  c:\res*.log c:\edb*.log</strong> and press Enter. This will delete the  old Active Directory database and log files. Close the command-prompt  window.</p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/compacting-the-database-with-an-offline-defragmenation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recover deleted Active Directory objects with the AD Recycle Bin PowerPack</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/recover-deleted-active-directory-objects-with-the-ad-recycle-bin-powerpack/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/recover-deleted-active-directory-objects-with-the-ad-recycle-bin-powerpack/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 06:49:23 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=267</guid>
		<description><![CDATA[Windows Server 2008 R2 reached RTM. Among the many cool new features provided with that release, Microsoft has now added a recycle bin feature to Active Directory. The management interface provided by Microsoft for this feature is the command line, or more specifically, PowerShell. That&#8217;s great if you&#8217;re like me and you love to manage [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Server 2008 R2 reached RTM.</p>
<p>Among the many cool new features provided with that release, Microsoft<br />
has now added a recycle bin feature to Active Directory.</p>
<p>The management interface provided by Microsoft for this feature is the  command line, or more specifically, PowerShell.</p>
<p>That&#8217;s great if you&#8217;re like me and you love to manage your  infrastructure<br />
using PowerShell, but what if you prefer a GUI?  Fortunately there is a  solution for you too.</p>
<p>Requirements</p>
<p>PowerGUI 1.9.0.900 or later</p>
<p>PowerShell 2.0 or later</p>
<p>Microsoft Active Directory module 1.0 or later</p>
<p>A forest running in Windows Server 2008 R2 Native mode (the PowerPack  will prompt you to change the mode if it is not the required mode)</p>
<p>The Active Directory recycle bin feature must be enabled (the PowerPack  will prompt you to do this if it is not enabled)</p>
<p>Features</p>
<p>� View the contents of the recycle bin, including hierarchies</p>
<p>� Restore individual items in the recycle bin (recursively or not) to  their original location</p>
<p>� Restore individual items in the recycle bin (recursively or not) to a  specified location</p>
<p>� Permanently delete objects in the recycle bin (recursively or not)</p>
<p>� Empty the contents of the recycle bin</p>
<p>� Modify the number of days that the recycle bin is configured to retain  objects and the number of days that objects are to be kept in a  tombstone state before permanent deletion</p>
<p>Download AD Recycle Bin PowerPack from here</p>
<p>How to install</p>
<p>1. Download the ActiveDirectoryRecycleBin.powerpack file<br />
that is attached to this article.</p>
<p>2. Open the PowerGUI admin console.</p>
<p>3. Select File | PowerPack Management to open the PowerPack Management  dialog.</p>
<p>4. Click on the Import button to import the PowerPack.</p>
<p>5. Using the dialog that just opened, browse to the location where you  downloaded the ActiveDirectoryRecycleBin.powerpack file and select that  file. Click on the Open button to import the Active Directory Recycle  Bin PowerPack into PowerGUI.</p>
<p>6. At this point the PowerPack is imported and you will have an Active  Directory Recycle Bin node in the Admin Console. Continue reading the  Getting Started section if you want to know how to get started using  this PowerPack.</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Recover-deleted-Active-Directory-objects-with-the-AD-Recycle-Bin-PowerPack.jpg"><img class="alignnone size-medium wp-image-268" title="Recover deleted Active Directory objects with the AD Recycle Bin PowerPack" src="http://www.timthetech.com/wp-content/uploads/2010/03/Recover-deleted-Active-Directory-objects-with-the-AD-Recycle-Bin-PowerPack-300x148.jpg" alt="" width="300" height="148" /></a></p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/recover-deleted-active-directory-objects-with-the-ad-recycle-bin-powerpack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory Replication Errors</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/active-directory-replication-errors/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/active-directory-replication-errors/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 06:47:36 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[Error Code]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=265</guid>
		<description><![CDATA[If you have 2 Active Directory Servers that are not replicating, ServerA &#38; ServerB, try the following: check if the secure channel has been corrupted From ServerA, go to Start -&#62; Run and type: \\ServerB From ServerB, go to Start -&#62; Run and type: \\ServerA If you get and error message indicating that the target [...]]]></description>
			<content:encoded><![CDATA[<p>If you have 2 Active Directory Servers that are not replicating, ServerA  &amp; ServerB, try the following:</p>
<p>check if the secure channel has been corrupted</p>
<blockquote><p>From ServerA, go to Start -&gt; Run and type:  \\ServerB<br />
From ServerB, go to Start -&gt; Run and type:  \\ServerA</p></blockquote>
<p>If you get and error message indicating that the target name is  incorrect, then the the secure channel has been corrupted.</p>
<p>You will also see error messages in replmon and repadmin debug  indicating that the target is invalid as well.</p>
<p><strong>Perform the following steps to fix the problem:</strong></p>
<p>Stop the Kerberos Key Distribution Center (KDC) service, and then set it  to Manual startup.</p>
<p>Run</p>
<blockquote><p>netdom resetpwd /server: /userd:  /passwordd:*</p></blockquote>
<p>Restart the computer, start the KDC, and then set it back to Automatic  startup.</p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/active-directory-replication-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Password Requirements in Windows Server 2003 Domains</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/disable-password-requirements-in-windows-server-2003-domains/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/disable-password-requirements-in-windows-server-2003-domains/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 06:44:39 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[Group Policy]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=259</guid>
		<description><![CDATA[How can I disable the password requirement for a user in a Windows Server 2003 Active Directory domain? Windows Server 2003 provides security policies that ensure that all users select strong passwords. Creating a password policy involves setting the following options in the Default Domain Group Policy object. These policies, with the exception of those [...]]]></description>
			<content:encoded><![CDATA[<p>How can I disable the password requirement for a user in a Windows Server 2003 Active Directory domain?</p>
<p>Windows Server 2003 provides security policies that ensure that all users select strong passwords. Creating a password policy involves setting the following options in the Default Domain Group Policy object. These policies, with the exception of those settings related to password lifetime, are enforced on all users in a domain.</p>
<p>The default password filter (Passfilt.dll) included with Windows Server 2003 requires that a password:</p>
<p>•Is not based on the user’s account name.<br />
•Contains at least six characters.<br />
•Contains characters from three of the following four categories:<br />
•Uppercase alphabet characters (A–Z)<br />
•Lowercase alphabet characters (a–z)<br />
•Arabic numerals (0–9)<br />
•Nonalphanumeric characters (for example, !$#,%)<br />
As stated above, this policy is enabled by default.</p>
<p>In some occasions, such as testing, lab-building, classes and so on, you might want to disable this built-in requirement.</p>
<p>Security Warning: Bare in mind that this setting can only be enabled/disabled at the domain level, and NOT on an OU level. Disabling the password requirement for an entire domain will lower your security configuration, and should only be done when absolutely necessary.</p>
<p>In order to disable this requirement you need to edit the Default Domain Policy for your domain.</p>
<p>Go to Administrative tools folder.<br />
Double-click on the Default Domain Security Policy icon.<br />
Note: If for any reason you don&#8217;t see that icon you can still edit the Default Domain Group Policy from the AD Users and Computers snap-in, or from a GPMC window (if you have GPMC installed &#8211; Download GPMC).<br />
Navigate to Security Settings &gt; Account Policies &gt; Password Policy.<br />
Right-click on the Minimum Password Length option in the right pane and select Properties.</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains1.gif"><img class="alignnone size-medium wp-image-260" title="Disable Password Requirements in Windows Server 2003 Domains1" src="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains1-300x209.gif" alt="" width="300" height="209" /></a></p>
<p>Keep the V on the Define Setting selected! Do not remove the V from that check-box. Removing the V will cause the GPO to revert to the default setting, which is what we are trying to remove in the first place.<br />
Enter 0 (zero) for the number of minimum characters required in a password.</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains2.gif"><img class="alignnone size-medium wp-image-261" title="Disable Password Requirements in Windows Server 2003 Domains2" src="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains2-300x209.gif" alt="" width="300" height="209" /></a></p>
<p>Now double-click on the Passwords Must Meet Complexity Requirements option in the right pane.</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains3.gif"><img class="alignnone size-medium wp-image-262" title="Disable Password Requirements in Windows Server 2003 Domains3" src="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains3-300x209.gif" alt="" width="300" height="209" /></a></p>
<p>Again, do not remove the V from that check-box. Instead, select Disabled.</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains4.gif"><img class="alignnone size-medium wp-image-263" title="Disable Password Requirements in Windows Server 2003 Domains4" src="http://www.timthetech.com/wp-content/uploads/2010/03/Disable-Password-Requirements-in-Windows-Server-2003-Domains4-300x209.gif" alt="" width="300" height="209" /></a></p>
<p>Click OK all the way out and close the GPO window.</p>
<p>In order to refresh the policy type the following command in a CMD window and click ENTER:</p>
<p>gpupdate /force</p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/disable-password-requirements-in-windows-server-2003-domains/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Moving NTDS.dit and its logs to a different location</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/moving-ntds-dit-and-its-logs-to-a-different-location/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/moving-ntds-dit-and-its-logs-to-a-different-location/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 02:54:05 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=256</guid>
		<description><![CDATA[Reasons for this include but are not limited to: •You run out of disk space and want to move it away from the system disk •You want the DB to run on a faster/more reliable hard disk (other than the system disk) •You experience performance issues and want to seperate the DB from the core [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Reasons for this include but are not limited to:</strong></p>
<p>•You run out of disk space and want to move it away from the system disk<br />
•You want the DB to run on a faster/more reliable hard disk (other than  the system disk)<br />
•You experience performance issues and want to seperate the DB from the  core OS hard disk<br />
•You fat-fingered the correct location of the DB file when running  dcpromo to bring the DC up<br />
The discussion brought up a few funny suggestions on how to go about  that (including simply “copy and paste” the files &#8211; at least they  thought about booting in DS restore mode). So here’s the outline how to  do it with 2000 server and Server 2003 (For Server 2008, see below):</p>
<p>1. Boot into Directory Services Restore Mode (DSRM) by pressing F8 on DC  reboot. That’s right, moving the database involves downtime.</p>
<p>2. Start ntdsutil in a CMD.</p>
<p>3. Enter the “File maintenance” submenu by typing “files“.</p>
<p>4. Move the database to a new place by typing “move db to ”  where location is a path, similar to E:\NTDS\. Note that you don’t have  to specify the file name &#8211; just the folder ntdsutil shall copy the files  to.</p>
<p>[5. Move the log files to a new place place by typing “move logs to ”  where location is - again - a path like E:\NTDS. This is optional, but  I’d keep the transaction log files with the database.]</p>
<p>6. Check whether the new file location is correct, typing “info” (still  in the file maintenance submenu. Give it a go. If you’ve fat-fingered it  once, changes are you did twice. The “info” command also prints out  where all files are stored; database and log files and how much space  they need.)</p>
<p>7. Check integrity of the database after it has moved. Do so by typing  “integrity“. This step might take a few minutes depending on how large  your database is — but since your down anyway, you should take the time  to ensure everything is correct.</p>
<p>8. Type “quit” twice and close the cmd. Now boot into normal mode again.</p>
<p>9. It is recommended that you back up the system state to have a current  backup of the database now (it is a good thought to have a backup  anyway since you clean-booted the DC and have it check for integrity.  Another aspect is that when restoring an older system state, the  location previous location of the NTDS.dit will be used &#8211; you’d have to  move the NTDS.dit once again using ntdsutil.</p>
<p>Please don’t forget to check security on the folder you move the  database to. It’s a bad idea to move it into a shared folders or the  wwwroot. You may laugh and I must admin those two examples are a bit of  extreme. The point is that you should take a moment and review the NTFS  permissions of the DB folder. Don’t share it, don’t allow anyone to  access it. Permissions it needs are (pasted from <a title="External link" rel="nofollow external" href="http://support.microsoft.com/kb/258062%29:">http://support.micro&#8230;com/kb/258062):</a></p>
<p><strong>Windows Server 2003</strong></p>
<p>Account Permissions Inheritance<br />
System Full Control This folder, subfolders and files<br />
Administrators Full Control This folder, subfolders and files<br />
Creator Owner Full Control Subfolders and Files only<br />
Local Service Create Folders / Append Data This folder and subfolders</p>
<p><strong>Windows 2000</strong></p>
<p>Account Permissions Inheritance<br />
Administrators Full Control This folder, subfolders and files<br />
System Full Control This folder, subfolders and files</p>
<p>A Windows Server 2008’s NTDS.dit location can be changed this way (it  differs as Windows Server 2008 has the capability of stopping Active  Directory and its services temporarily. This wasn’t possible with before  2008):</p>
<p>1. Stop the “Active Directory Domain Services” service in services.msc.  It will prompt you that it’ll need to shut down other services as well  (Kerberos, File Replication, DNS, ..). You want these services to stop,  too, so click “Yes”.</p>
<p>2. Open ntdsutil. You need to activate the correct instance of ntds to  perform maintenance tasks. The standard instance of Active Directory is  “ntds”, so we use “activate instance ntds” as the first command.</p>
<p>3. Enter the File maintenance submenu by typing “files” as the second  command.</p>
<p>4. Move the database to a new place by typing “move db to ”  where location is a path, similar to E:\NTDS\. Note that you don’t have  to specify the file name &#8211; just the folder ntdsutil shall copy the files  to.</p>
<p>[5. Move the log files to a new place place by typing “move logs to ”  where location is - again - a path like E:\NTDS. This is optional, but  I’d keep the transaction log files with the database.]</p>
<p>6. Check whether the new file location is correct, typing “info“.  (”info” also prints out where all files are stored; database and log  files and how much space they need.)</p>
<p>7. Check integrity of the database after it has moved. Do so by typing  “integrity“. This step might take a few minutes depending on how large  your database is — but since your down anyway, you should take the time  to ensure everything is correct.</p>
<p>8. Type “quit” twice and close the cmd. Start the “Active Directory  Domain Services” service again.</p>
<p>9. Backup the system state. See above for reasons.</p>
<p>Just like with Server 2003 and 2000, check the security on the folder  you move the DB to (see above). Since I haven’t found documentation that  tells otherwise, I guess the permissions in Server 2003 are good for  2008 too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/moving-ntds-dit-and-its-logs-to-a-different-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Find Nested Group Members</title>
		<link>http://www.timthetech.com/windows/windows-2008/active-directory/how-to-find-nested-group-members/</link>
		<comments>http://www.timthetech.com/windows/windows-2008/active-directory/how-to-find-nested-group-members/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 02:41:55 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[AD]]></category>

		<guid isPermaLink="false">http://www.timthetech.com/?p=249</guid>
		<description><![CDATA[What if your security group has nested groups and users? Then those nested groups may also have additional nested groups and users. What does that query look like? How do you find all the members? Suppose I have the following Example TopLevelGroup &#8212; Global Security Group TopLevel &#8212; User TopLevel2 &#8211; User2 Nested1 &#8211; Global [...]]]></description>
			<content:encoded><![CDATA[<p>What if your security group has nested groups and users? Then those nested groups may also have additional nested groups and users. What does that query look like? How do you find all the members?</p>
<p>Suppose I have the following Example</p>
<p><strong>TopLevelGroup &#8212; Global Security Group</strong></p>
<p>TopLevel &#8212; User</p>
<p>TopLevel2 &#8211; User2</p>
<p>Nested1 &#8211; Global Security Group</p>
<p>Nested1 Members</p>
<p>Nested User</p>
<p>Nested User 2</p>
<p>InsideNested &#8211; Global Security Group</p>
<p>InsideNested Members</p>
<p>InsideNested1</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members1.jpg"><img class="alignnone size-medium wp-image-250" title="Find Nested Group Members1" src="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members1-216x300.jpg" alt="" width="216" height="300" /></a></p>
<p>There are several ways to do this, I&#8217;m not saying these are the only methods but these are three examples that work.</p>
<p>The first method is to use the PowerShell. For this example you will need the Quest AD Cmdlets. Thanks to MVP Dmitry Sotnikov for the Quest cmdlets.</p>
<p>Get-QADGroupMember &#8220;Group Name&#8221; -indirect</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members2.jpg"><img class="alignnone size-medium wp-image-251" title="Find Nested Group Members2" src="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members2-300x98.jpg" alt="" width="300" height="98" /></a></p>
<p>The second method is using ADFIND by MVP Joe Richards</p>
<p>adfind -default -bit -f &#8220;memberof:1.2.840.113556.1.4.1941:=DN of Group&#8221; samaccountname -nodn</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members3.jpg"><img class="alignnone size-medium wp-image-252" title="Find Nested Group Members3" src="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members3-300x112.jpg" alt="" width="300" height="112" /></a></p>
<p>More on that query here</p>
<p>Now on to method three. Some people (especially in classified networks) can&#8217;t install the Quest cmdlets or adfind (or any third party tool)</p>
<p>The Microsoft DStools can be used. For this example I&#8217;ll use dsquery and dsget</p>
<p>dsquery group -samid &#8220;group name&#8221; | dsget group -members -expand</p>
<p><a href="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members4.jpg"><img class="alignnone size-medium wp-image-253" title="Find Nested Group Members4" src="http://www.timthetech.com/wp-content/uploads/2010/03/Find-Nested-Group-Members4-300x83.jpg" alt="" width="300" height="83" /></a></p>
<p><span> </span></p>
<blockquote><p><span>If you&#8217;d like to learn more about Active Directory, I&#8217;d recommend that you get hold of these <a title="Active Directory Training Videos" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Active Directory Training Videos</a>. If you truly want to <a title="Learn Active Directory" href="http://www.winstructor.com/products/Active-Directory-Training.html" target="_blank">Learn Active Directory</a> you won&#8217;t find better training than this.</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.timthetech.com/windows/windows-2008/active-directory/how-to-find-nested-group-members/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
