<?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>sheenaustin.com &#187; Microsoft</title>
	<atom:link href="http://www.sheenaustin.com/category/ms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sheenaustin.com</link>
	<description>my home on the interweb</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:59:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>DSQuery Operating System Service Pack Version</title>
		<link>http://www.sheenaustin.com/2010/07/20/dsquery-operating-system-service-pack-version/</link>
		<comments>http://www.sheenaustin.com/2010/07/20/dsquery-operating-system-service-pack-version/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 01:59:27 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Windows Scripting]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[DSQuery]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Operating System]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/?p=199</guid>
		<description><![CDATA[I had a requirement recently to get the service pack versions for all workstations on the domain. I tried a few different options but the easiest option was to use the extremely useful dsquery tool. Without further ado, this is the command: dsquery * -scope subtree -attr &#8220;cn&#8221; &#8220;operatingSystem&#8221; &#8220;operatingSystemServicePack&#8221;  -filter &#8220;(&#38;(objectclass=computer)(objectcategory=computer)(operatingSystem=Windows XP*))&#8221; -limit 100000 [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/19/diskpartexe-warning-when-expanding-drive/' rel='bookmark' title='Permanent Link: Diskpart.exe Warning when expanding drive'>Diskpart.exe Warning when expanding drive</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/' rel='bookmark' title='Permanent Link: Active Directory Password Expiry Reminder Email'>Active Directory Password Expiry Reminder Email</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I had a requirement recently to get the service pack versions for all workstations on the domain. I tried a few different options but the easiest option was to use the extremely useful dsquery tool.</p>
<p>Without further ado, this is the command:</p>
<blockquote><p>dsquery * -scope subtree -attr &#8220;cn&#8221; &#8220;operatingSystem&#8221; &#8220;operatingSystemServicePack&#8221;  -filter &#8220;(&amp;(objectclass=computer)(objectcategory=computer)(operatingSystem=Windows XP*))&#8221; -limit 100000</p></blockquote>
<p>The output of this command would be as follows:</p>
<p>cn                 operatingSystem                      operatingSystemServicePack<br />
WRK001    Windows XP Professional     Service Pack 1<br />
WRK002    Windows XP Professional     Service Pack 2<br />
WRK003    Windows XP Professional     Service Pack 3</p>
<p>Where, cn is the workstation name and the others are self explanatory.</p>
<p>Share your handy little tips and tricks!</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/19/diskpartexe-warning-when-expanding-drive/' rel='bookmark' title='Permanent Link: Diskpart.exe Warning when expanding drive'>Diskpart.exe Warning when expanding drive</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/' rel='bookmark' title='Permanent Link: Active Directory Password Expiry Reminder Email'>Active Directory Password Expiry Reminder Email</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2010/07/20/dsquery-operating-system-service-pack-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Symantec Backup Exec Error 0xe00084af (All Versions)</title>
		<link>http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/</link>
		<comments>http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 11:35:43 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[10]]></category>
		<category><![CDATA[10d]]></category>
		<category><![CDATA[11]]></category>
		<category><![CDATA[11d]]></category>
		<category><![CDATA[12.5]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Exec]]></category>
		<category><![CDATA[Symantec]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/?p=196</guid>
		<description><![CDATA[I have been tearing my hair out for a couple of weeks with this error and Symantec wasn&#8217;t of any help. We had this error with version 12.5 of Symantec Backup Exec and it started on a server apparently out of the blue after having no issues for over 2 years. Out of ideas and [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/' rel='bookmark' title='Permanent Link: How to Backup and Restore Active Directory'>How to Backup and Restore Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/' rel='bookmark' title='Permanent Link: OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services'>OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services</a></li>
<li><a href='http://www.sheenaustin.com/2010/01/29/script-to-hot-backup-vmware-esx-virtual-machines/' rel='bookmark' title='Permanent Link: Script to Hot Backup VMWare ESX Virtual Machines'>Script to Hot Backup VMWare ESX Virtual Machines</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/01/error-rewriteengine-not-allowed-here/' rel='bookmark' title='Permanent Link: Error: RewriteEngine not allowed here'>Error: RewriteEngine not allowed here</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/18/exchange-2007-recreate-owa-folders/' rel='bookmark' title='Permanent Link: Exchange 2007 Recreate OWA folders'>Exchange 2007 Recreate OWA folders</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I have been tearing my hair out for a couple of weeks with this error and Symantec wasn&#8217;t of any help. We had this error with version 12.5 of Symantec Backup Exec and it started on a server apparently out of the blue after having no issues for over 2 years.</p>
<p>Out of ideas and with no help from Symantec, we upgraded to version 2010 hoping that this would fix the error. No go. The backups still failed. We were back to square one.<span id="more-196"></span></p>
<p>I knew that it was something that had gone wonky with VSS that was throwing things in disarray. I ended up going back to the good old trial and error method to fix this issue. I first tried killing the vsssvc.exe process before the backup started &#8211; didn&#8217;t really fix the issue. I tried one thing after the other with VSS but it all failed.</p>
<p>Then one day, I tried stopping the SQL VSS Writer &#8211; I dont know why I did it but I guess it was a hatred deep down I now had for VSS that made me stop that service but Halleluijah! it fixed the issue. I know this wont make any sense &#8211; it still hasn&#8217;t made sense to me &#8211; I don&#8217;t know why an SQL VSS Writer would mess up a file system backup, but lo and behold the problem was history.</p>
<p>If you have lost hair and time working on this issue, go ahead and add &#8216;net stop SQLWriter&#8217; to the pre-command and &#8216;net start SQLWriter&#8217; to the post command and you will not have these issues anymore. </p>
<p>Drop me a line if you think this post helped you.</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/' rel='bookmark' title='Permanent Link: How to Backup and Restore Active Directory'>How to Backup and Restore Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/' rel='bookmark' title='Permanent Link: OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services'>OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services</a></li>
<li><a href='http://www.sheenaustin.com/2010/01/29/script-to-hot-backup-vmware-esx-virtual-machines/' rel='bookmark' title='Permanent Link: Script to Hot Backup VMWare ESX Virtual Machines'>Script to Hot Backup VMWare ESX Virtual Machines</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/01/error-rewriteengine-not-allowed-here/' rel='bookmark' title='Permanent Link: Error: RewriteEngine not allowed here'>Error: RewriteEngine not allowed here</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/18/exchange-2007-recreate-owa-folders/' rel='bookmark' title='Permanent Link: Exchange 2007 Recreate OWA folders'>Exchange 2007 Recreate OWA folders</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services</title>
		<link>http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/</link>
		<comments>http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 21:03:11 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[adsiedit]]></category>
		<category><![CDATA[Errors]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[OCS]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/</guid>
		<description><![CDATA[You may come across this error message when you install Office Communications Server 2007 for the first time in your environment. This error generally is seen after you run through the initial steps and are trying to start the OCS services for the first time. This event ID will contain the following message: ERRORS: Two [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
<li><a href='http://www.sheenaustin.com/2009/11/18/kb974571-and-ocs-2007/' rel='bookmark' title='Permanent Link: KB974571 and OCS 2007'>KB974571 and OCS 2007</a></li>
<li><a href='http://www.sheenaustin.com/2009/04/30/a-certificate-could-not-be-found-that-can-be-used-with-this-extensible-authentication-protocol/' rel='bookmark' title='Permanent Link: A Certificate could not be found that can be used with this Extensible Authentication Protocol'>A Certificate could not be found that can be used with this Extensible Authentication Protocol</a></li>
<li><a href='http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/' rel='bookmark' title='Permanent Link: How to Backup and Restore Active Directory'>How to Backup and Restore Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/04/28/setting-up-split-brain-dns-in-windows-server/' rel='bookmark' title='Permanent Link: Setting up Split Brain DNS in Windows Server 2003'>Setting up Split Brain DNS in Windows Server 2003</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You may come across this error message when you install Office Communications Server 2007 for the first time in your environment. This error generally is seen after you run through the initial steps and are trying to start the OCS services for the first time.</p>
<p>This event ID will contain the following message:</p>
<blockquote><p>ERRORS:     <br />Two server roles at FQDN [server.domain.com] have different &#8216;Treat As Authenticated&#8217; options. First server has GUID {58BDE507-1C48-4BA4-BCDF-06FB59ADF9CE} and role &#8216;Enterprise Edition&#8217; (option is set). Second server has GUID {BD77F03B-4451-4171-A035-FC7FB264383D} and role &#8216;A/V Authentication Service&#8217; (option is not set). Two server roles at FQDN [server.domain.com] have different server version numbers. First server has GUID {58BDE507-1C48-4BA4-BCDF-06FB59ADF9CE} and role &#8216;Enterprise Edition&#8217; (version 3). Second server has GUID {BD77F03B-4451-4171-A035-FC7FB264383D} and role &#8216;A/V Authentication Service&#8217; (version 0). Two server roles at FQDN [server.domain.com] have different &#8216;Treat As Authenticated&#8217; options. First server has GUID {58BDE507-1C48-4BA4-BCDF-06FB59ADF9CE} and role &#8216;Enterprise Edition&#8217; (option is set). Second server has GUID {1719A023-DDB4-5170-836D-3299D4F067C6} and role &#8216;Edge Server&#8217; (option is not set). Two server roles at FQDN [server.domain.com] have different server version numbers. First server has GUID {58BDE507-1C48-4BA4-BCDF-06FB59ADF9CE} and role &#8216;Enterprise Edition&#8217; (version 3). Second server has GUID {1719A023-DDB4-5170-836D-3299D4F067C6} and role &#8216;Edge Server&#8217; (version 0). </p>
<p>WARNINGS:     <br />No warnings </p>
<p>Cause: The configuration is invalid and the server might not behave as expected.     <br />Resolution:      <br />Review and correct the errors listed above, then restart the service. You also wish to review any warnings present. </p>
<p>For more information, see Help and Support Center at <a href="http://go.microsoft.com/fwlink/events.asp">http://go.microsoft.com/fwlink/events.asp</a>. </p>
<p>&#160;</p>
</blockquote>
<p>This error can be misleading. The primary reason you see this error is simple – You have had a previous installation of OCS in the domain and there are still a few entries in Active Directory that haven’t been cleaned up even though you did a clean uninstall of OCS.</p>
<p>This is what you need to do to fix the error:</p>
<p> <span id="more-155"></span>
<p>Please Remember – You are following the instructions below at your own risk.</p>
<p>Open up adsiedit.msc and browse to the system configuration partition under Domain –&gt; DC=domain,DC=com –&gt; System –&gt; Microsoft –&gt; RTC Service.</p>
<p>NOTE: This is safe to perform only if you do not have a current working installation of OCS in your domain or forest.</p>
<p>Select and delete everything under this key.</p>
<p>Now go ahead and run the setup again (you will have to run the forest prep again) and you will be all set!</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
<li><a href='http://www.sheenaustin.com/2009/11/18/kb974571-and-ocs-2007/' rel='bookmark' title='Permanent Link: KB974571 and OCS 2007'>KB974571 and OCS 2007</a></li>
<li><a href='http://www.sheenaustin.com/2009/04/30/a-certificate-could-not-be-found-that-can-be-used-with-this-extensible-authentication-protocol/' rel='bookmark' title='Permanent Link: A Certificate could not be found that can be used with this Extensible Authentication Protocol'>A Certificate could not be found that can be used with this Extensible Authentication Protocol</a></li>
<li><a href='http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/' rel='bookmark' title='Permanent Link: How to Backup and Restore Active Directory'>How to Backup and Restore Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/04/28/setting-up-split-brain-dns-in-windows-server/' rel='bookmark' title='Permanent Link: Setting up Split Brain DNS in Windows Server 2003'>Setting up Split Brain DNS in Windows Server 2003</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KB974571 and OCS 2007</title>
		<link>http://www.sheenaustin.com/2009/11/18/kb974571-and-ocs-2007/</link>
		<comments>http://www.sheenaustin.com/2009/11/18/kb974571-and-ocs-2007/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 21:21:00 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[OCS]]></category>
		<category><![CDATA[Patch Install]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/2010/01/15/kb974571-and-ocs-2007/</guid>
		<description><![CDATA[If you are running OCS 2007 or 2007 R2, do not install the patch KB974571. This patch is known to break OCS 2007 installations. In cases where the Office Communications Server 2007 has this patch, you will not be able to install the server and will get an weird error saying that the time is [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/' rel='bookmark' title='Permanent Link: OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services'>OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services</a></li>
<li><a href='http://www.sheenaustin.com/2009/07/18/the-winroute-tool/' rel='bookmark' title='Permanent Link: The WinRoute tool'>The WinRoute tool</a></li>
<li><a href='http://www.sheenaustin.com/2009/04/30/a-certificate-could-not-be-found-that-can-be-used-with-this-extensible-authentication-protocol/' rel='bookmark' title='Permanent Link: A Certificate could not be found that can be used with this Extensible Authentication Protocol'>A Certificate could not be found that can be used with this Extensible Authentication Protocol</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/18/exchange-2007-recreate-owa-folders/' rel='bookmark' title='Permanent Link: Exchange 2007 Recreate OWA folders'>Exchange 2007 Recreate OWA folders</a></li>
<li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you are running OCS 2007 or 2007 R2, do not install the patch KB974571. This patch is known to break OCS 2007 installations. In cases where the Office Communications Server 2007 has this patch, you will not be able to install the server and will get an weird error saying that the time is not correct or not in sync.</p>
<p>Here is the <a href="http://support.microsoft.com/default.aspx/kb/974571" target="_blank">Microsoft KB</a> article about this error.</p>
<p>Let me know if you have installed this patch and are able to run your OCS 2007 server without issues.</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2010/01/15/ocs-2007-event-id-14517-when-starting-services/' rel='bookmark' title='Permanent Link: OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services'>OCS 2007 Protocol Stack Error Event ID 14517 When Starting Services</a></li>
<li><a href='http://www.sheenaustin.com/2009/07/18/the-winroute-tool/' rel='bookmark' title='Permanent Link: The WinRoute tool'>The WinRoute tool</a></li>
<li><a href='http://www.sheenaustin.com/2009/04/30/a-certificate-could-not-be-found-that-can-be-used-with-this-extensible-authentication-protocol/' rel='bookmark' title='Permanent Link: A Certificate could not be found that can be used with this Extensible Authentication Protocol'>A Certificate could not be found that can be used with this Extensible Authentication Protocol</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/18/exchange-2007-recreate-owa-folders/' rel='bookmark' title='Permanent Link: Exchange 2007 Recreate OWA folders'>Exchange 2007 Recreate OWA folders</a></li>
<li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2009/11/18/kb974571-and-ocs-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Backup and Restore Active Directory</title>
		<link>http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/</link>
		<comments>http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 00:53:00 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[Restore]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/</guid>
		<description><![CDATA[There are many documents written about backing up Active Directory but I didn’t find enough documentation that would help us restore Active Directory. So here is a guide aimed to provide insights into correctly backing up and restoring Active Directory. Here is my mini how to – I have tried to keep it as simple [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/04/28/setting-up-split-brain-dns-in-windows-server/' rel='bookmark' title='Permanent Link: Setting up Split Brain DNS in Windows Server 2003'>Setting up Split Brain DNS in Windows Server 2003</a></li>
<li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/04/active-directory-audit-script/' rel='bookmark' title='Permanent Link: Active Directory Audit Script'>Active Directory Audit Script</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/' rel='bookmark' title='Permanent Link: Active Directory Password Expiry Reminder Email'>Active Directory Password Expiry Reminder Email</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There are many documents written about backing up Active Directory but I didn’t find enough documentation that would help us restore Active Directory. So here is a guide aimed to provide insights into correctly backing up and restoring Active Directory.</p>
<p>Here is my mini how to – I have tried to keep it as simple as possible:</p>
<p> <span id="more-162"></span><br />
<h1></h1>
<h6>Backing Up Active Directory</h6>
<p>Active Directory depends on the system state and the NTDS database among other things. So it is important to back these up on your domain controller. It is critically important to ensure that the system state data on a domain controller is backed up regularly since this contains all the core system files that are required to run a domain controller. Manually selecting what needs to be backed up will be extremely complicated and could be error prone – stay away from that path – just backup the entire system state.</p>
<p>What needs to be backed up? – System State</p>
<p>What kind of Backup needs to be run? – Full backup of the system state.</p>
<p>How often is good enough? – Daily &#8211; You will thank me for this <img src='http://www.sheenaustin.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><b>Restoring Active Directory</b> (for experts who just need the short version)</p>
<p>There are two types of restores:</p>
<p>1. <b>Normal Restore</b> – This was also called the Non-Authoritative restore. This is generally performed when you need to restore a domain controller that has failed and there are other domain controllers on the domain. Another option would be to just reinstall the domain controller, clean up the AD metadata of all references to the failed DC and then promote the new server to a DC and replicate. If you are in a situation where you cannot do that, to perform a normal (or Non-Authoritative restore) you would:</p>
<p>a. Boot the domain controller into the Domain Services Restore Mode .</p>
<p>b. Restore system state </p>
<p>c. Reboot into the normal mode.</p>
<p>d. Replicate from other domain controllers.</p>
<p>2. <b>Authoritative Restore</b> – This would be performed in cases where you make a mistake like, say, delete an OU. In this case, a normal restore would not help since the OU that you just restored would get deleted again when you replicate changes with other domain controllers. An authoritative restore would help you undo a big mistake by ensuring that you are taken back to a working copy of AD. However, changes that you made since the last full backup would be lost. (So run your full backups daily!). To perform an authoritative restore:</p>
<p>a. Perform a normal restore.</p>
<p>b. Don’t reboot after the restore.</p>
<p>c. Use ntdsutil to get into the authoritative restore mode.</p>
<p>d. Specify if you want to mark the entire database or just a subtree as authoritative.</p>
<p>e. Quit the utility and reboot the server</p>
<p>3. <b>Primary Restore</b> – This restore is only used when you have a major disaster (read complete meltdown) and you have no working domain controllers. In such a case, you will have restore the entire domain from backups. The working process is very similar to the Normal Restore procedure mentioned above. This is how you would do it:</p>
<p>a. Boot the domain controller into the Domain Services Restore Mode .</p>
<p>b. Restore system state – ensure that the advanced option ‘Mark the restored data as the primary data for all replicas’ is checked.</p>
<p>c. Reboot into the normal mode.</p>
<p><b></b></p>
<p><b></b></p>
<p><b>Restoring Active Directory </b>(for the rest of us)</p>
<p>1. <b>Normal Restore</b> – Here’s the step by step.</p>
<p>a. Reboot Server</p>
<p>b. During startup press F8 and choose, ‘Directory Services Restore Mode (Windows DCs only)</p>
<p>c. Choose the OS to be started, hit enter.</p>
<p>d. Hit OK at the Safe Mode login.</p>
<p>e. Open up the NTBackup utility.</p>
<p>f. Click next on the welcome page.</p>
<p>g. Select ‘Restore Files and Settings’ from the backup or restore page. Click Next.</p>
<p>h. Choose the backup you want to restore from the ‘What to restore’ page. Click Next.</p>
<p>i. Click Finish to start the restore. (Advanced options are best left untouched for a normal restore unless you want to save the backup elsewhere.)</p>
<p>j. Reboot server.</p>
<p>2. <b>Authoritative Restore –</b></p>
<p>a. Perform a normal restore as mentioned before.</p>
<p>b. Do not reboot server after the restore.</p>
<p>c. Click on start -&gt; run -&gt; type ntdsutil.</p>
<p>d. Now type ‘authoritative restore’</p>
<p>e. Now specify the components you want to make authoritative. Enter either ‘restore database’ or ‘restore subtree’ along with the DN of the AD object you want to make authoritative.</p>
<p>f. Confirm your actions when prompted.</p>
<p>g. Type quit until the utility exits.</p>
<p>h. Reboot server.</p>
<p>3. <b>Primary Restore –</b></p>
<p>a. Reboot Server</p>
<p>b. During startup press F8 and choose, ‘Directory Services Restore Mode (Windows DCs only)</p>
<p>c. Choose the OS to be started, hit enter.</p>
<p>d. Hit OK at the Safe Mode login.</p>
<p>e. Open up the NTBackup utility.</p>
<p>f. Click next on the welcome page.</p>
<p>g. Select ‘Restore Files and Settings’ from the backup or restore page. Click Next.</p>
<p>h. Choose the backup you want to restore from the ‘What to restore’ page. Click Next.</p>
<p>i. Click Advanced.</p>
<p>j. Ensure that on the ‘Where to Restore’ page, the default setting ‘Original Location’ is selected. Click Next.</p>
<p>k. On the How to Restore page, ensure that ‘Replace existing files’ is selected. Click Next.</p>
<p>l. On the Advanced Restore Options page – enable the ‘When restoring replicated data sets, mark the restored data as the primary data for all replicas’ option. Click Next.</p>
<p>m. Click Finish to start the primary restore.</p>
<p>n. Reboot server.</p>
<p>o. Go to sleep <img src='http://www.sheenaustin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&#160;</p>
<p>PS: As always, please exercise due diligence when using the instructions in a live environment. Kindly do not blame me if something doesn&#8217;t work if Microsoft decides to change their code.</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/04/28/setting-up-split-brain-dns-in-windows-server/' rel='bookmark' title='Permanent Link: Setting up Split Brain DNS in Windows Server 2003'>Setting up Split Brain DNS in Windows Server 2003</a></li>
<li><a href='http://www.sheenaustin.com/2010/06/11/symantec-backup-exec-error-0xe00084af-all-versions/' rel='bookmark' title='Permanent Link: Symantec Backup Exec Error 0xe00084af (All Versions)'>Symantec Backup Exec Error 0xe00084af (All Versions)</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/04/active-directory-audit-script/' rel='bookmark' title='Permanent Link: Active Directory Audit Script'>Active Directory Audit Script</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/' rel='bookmark' title='Permanent Link: Active Directory Password Expiry Reminder Email'>Active Directory Password Expiry Reminder Email</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
