<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.dirteam.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>The things that are better left unspoken : Microsoft Windows Server 2008, Active Directory</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/Active+Directory/default.aspx</link><description>Tags: Microsoft Windows Server 2008, Active Directory</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Active Directory Services and their System Center Management Packs</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2013/05/13/active-directory-services-and-their-system-center-management-packs.aspx</link><pubDate>Mon, 13 May 2013 06:06:32 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6856</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/6856.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=6856</wfw:commentRss><description>&lt;p&gt;&lt;img title="System Center" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;float:right;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="System Center" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/SystemCenter_logo_08356568.png" width="120" height="127" /&gt;As you might be aware, every Microsoft technology has the requirement to be manageable through PowerShell and System Center. Manageability through System Center is done through Management Packs. (MPs).&lt;/p&gt;  &lt;p&gt;While I discussed &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2013/05/10/active-directory-services-and-powershell-manageability.aspx"&gt;the PowerShell manageability stories for the five Active Directory services&lt;/a&gt; last Saturday, below is the overview of the availability and functionality of the Management Packs (MPs) for the five Active Directory services:&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h3&gt;Active Directory Domain Services&lt;/h3&gt;  &lt;p&gt;For Windows Servers running the Active Directory Domain Services as Domain Controllers, a System Center Management Pack has been available for ages, even before the products responsible for management were labeled ‘System Center’ (System Center Operations Manager was called MOM Server and System Center Configuration Manager was called SMS Server). &lt;/p&gt;  &lt;p&gt;The Active Directory Domain Services Management Pack for System Center provides both proactive and reactive monitoring of your Active Directory deployment. It monitors events that various Active Directory components and subsystems place in the Application, System, and Service event logs. It also monitors the overall health of the Active Directory system and provides alerts for critical performance issues. &lt;/p&gt;  &lt;p&gt;When used with the Management Pack for the Windows Server Operating System, the DNS Server Role, File Services, Group Policy and DFS Replication, a complete management view starts to emerge, where you can monitor the health of your Domain Controllers.&lt;/p&gt;  &lt;p&gt;The latest version (v6.0.8070.0) adds support for Windows Server 2012.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download&lt;/strong&gt; &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=21357"&gt;MP for AD Domain Services v6.0.8070.0&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Also available is a System Center Integration Pack, that allows System Center 2012 - Orchestrator to connect to your Active Directory Server to automate Identity and Access management tasks.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download &lt;/strong&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=28020"&gt;System Center Integration Pack for Active Directory v7.0&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h3&gt;Active Directory Lightweight Directory Services&lt;/h3&gt;  &lt;p&gt;The Active Directory Lightweight Directory Services (AD LDS) Management Pack provides both proactive and reactive monitoring of your AD LDS deployment running on Windows Server 2008 and Windows Server 2008 R2. It monitors events that are placed in the Application, System, and Service event logs by various Active Directory Lightweight Directory Services components and subsystems. It also monitors the overall health of the Active Directory Lightweight Directory Services system and alerts you to critical performance issues. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download &lt;/strong&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=1451"&gt;MP for AD Lightweight Directory Services v6.0.7220.0&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h3&gt;Active Directory Certificate Services&lt;/h3&gt;  &lt;p&gt;The System Center Management Pack for Active Directory Certificate Services provides an early warning to administrators on issues that could affect services so they can investigate and take action, if necessary. &lt;/p&gt;  &lt;p&gt;Two Management Packs for Active Directory Certificate Services are currently available. An ‘old’ Management Pack exists to manage Certification Authorities running on Windows Server 2008 and Windows Server 2008 R2. This Management Pack follows the 6.x version numbering. A completely new 7.x Management Pack is available alongside the 6.x version and enables management of Certification Authorities on Windows Server 2008, Windows Server 2008 R2 and Windows Server 2012.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;&lt;u&gt;Note:          &lt;br /&gt;&lt;/u&gt;&lt;/strong&gt;The Management Packs for Active Directory Certificate Services monitors the core Certification Authority, but does not monitor Certificate Services role services (such as the Online (OCSP) responder, Network Device Enrollment Services (NDES), Certificate enrollment web services, NDES, or CA web enrollment).&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;Download &lt;/strong&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=11159"&gt;MP for AD Certificate Services v6.0.7231.0&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;strong&gt;Download&lt;/strong&gt; &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=34765"&gt;MP for Windows Server 2012 AD Certificate Services v7.0.8560.0&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h3&gt;Active Directory Federation Services&lt;/h3&gt;  &lt;p&gt;The System Center Management Pack for Active Directory Federation Services 1.x has been available since September 2007 and for Active Directory Federation Services&amp;#160; 2.x since June 2010. &lt;/p&gt;  &lt;p&gt;The Management Pack for Active Directory Federation Services offers the ability to detect service outages, operational errors and operational warnings. It also alerts on configuration issues and background tasks failures. Auditing can also be monitored, as well as the communication between the federation server and the federation server proxy. With the Management Pack you can be notified of malformed access requests and the health of the Secure Sockets Layer (SSL) certificate of the federation passive website in Internet Information Services (IIS).&lt;/p&gt;  &lt;p&gt;Depending on the version of Active Directory Federation Services, you can choose between the 6.x version and the 7.x version of the Management Pack, where version 6.x can be used to monitor Active Directory Federation Services 1.0 and version 7.x can be used to monitor Active Directory Federation Services 2.0 (available as a separate download for Windows Server 2008 R2) and 2.1 (bundled with Windows Server 2012).&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download&lt;/strong&gt;&amp;#160;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=20702"&gt;MP for Windows Server 2003 R2 AD Federation Services v6.0.5000.0&lt;/a&gt;&amp;#160;&lt;strong&gt;      &lt;br /&gt;Download &lt;/strong&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=19265"&gt;MP for AD Federation Services 2.0 and 2.1 v7.0.8560.0&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h3&gt;Active Directory Rights Management Services&lt;/h3&gt;  &lt;p&gt;The System Center Management Pack for Active Directory Rights Management Services (AD RMS) has been available since July 2011 and monitors the performance and availability of the Windows Server 2008 SP2 or Windows Server 2008 R2 versions of AD RMS. By detecting, alerting on, and automatically responding to critical events and performance indicators, this Management Pack helps indicate, correct, and prevent possible AD RMS related service outages. The System Center Monitoring Pack for Active Directory Rights Management Services for Windows Server 2008 SP2 or Windows Server 2008 R2 helps ensure that your AD RMS components are available and working correctly. &lt;/p&gt;  &lt;p&gt;In September 2012, Microsoft released a version 7.x of the Management Pack for Active Directory Rights Management Services. This Management Pack can be used to manage Rights Management Services, running on Windows Server 2012. For Rights Management Services running on Windows Server 2008 and Windows Server 2008 R2, the 6.0.7xxx.x version of the Management Pack is the one to use. For sturdy Rights Management Servers on Windows Server 2003, the 6.0.5000.0 version of the Management Pack offers the desired monitoring capabilities.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Download &lt;/strong&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=7585"&gt;MP for Windows Server 2003 Rights Management Services v6.0.5000.0&lt;/a&gt;     &lt;br /&gt;&lt;strong&gt;Download&lt;/strong&gt; &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=26911"&gt;MP for AD Rights Management Services v6.0.7597.0&lt;/a&gt;     &lt;br /&gt;&lt;strong&gt;Download&lt;/strong&gt; &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=34766"&gt;MP for Windows Server 2012 AD Rights Management Services v7.0.8560.0&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Related blogposts &lt;/h2&gt; &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2013/01/20/active-directory-domain-services-management-pack-for-system-center-updated-last-week.aspx"&gt;Active Directory Domain Services Management Pack for System Center updated last week&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/10/06/system-center-monitoring-pack-for-active-directory-was-updated-today.aspx"&gt;System Center Monitoring Pack for Active Directory was updated today&lt;/a&gt;   &lt;br /&gt;  &lt;h2&gt;Further reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc838065.aspx"&gt;Understanding Active Directory Domain Services Management Pack Operations&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.systemcentercentral.com/opsmgr-recent-management-pack-releases-and-updates-january-2013/"&gt;OpsMgr: Recent Management Pack Releases and Updates (January 2013)&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://kevingreeneitblog.blogspot.nl/2013/01/new-and-recent-system-center-downloads.html"&gt;New and Recent System Center Downloads&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://cloudadministrator.wordpress.com/2013/01/10/new-version-active-directory-domain-services-management-pack-for-system-center/"&gt;New Version: Active Directory Domain Services Management Pack for System Center&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.technet.com/b/momteam/archive/2013/04/29/windows-server-active-directory-certificate-services-2012-mp-released.aspx"&gt;Windows Server Active Directory Certificate Services 2012 MP *Language Packs* Released&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Related downloads&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=9296&amp;amp;utm_source=feedburner&amp;amp;utm_medium=feed&amp;amp;utm_campaign=Feed%3A+MicrosoftDownloadCenter+%28Microsoft+Download+Center%29#tm"&gt;System Center Management Pack for Windows Server Operating System&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=38434"&gt;System Center Management Pack for Windows 8 Client Operating System&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6856" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2012/default.aspx">Microsoft Windows Server 2012</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/System+Center/default.aspx">System Center</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2003/default.aspx">Microsoft Windows Server 2003</category></item><item><title>Active Directory Services on Server Core installations</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2013/05/09/active-directory-services-on-server-core-installations.aspx</link><pubDate>Thu, 09 May 2013 18:58:18 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6854</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/6854.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=6854</wfw:commentRss><description>&lt;p&gt;&lt;img title="Server Core" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;float:right;padding-top:0px;padding-left:0px;margin:0px 0px 0px 10px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="Server Core" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/ServerCore_085D782C.jpg" width="100" height="119" /&gt;Windows Server 2012 is a major leap forward for Server Core installations of Windows Server. Not only are Full installations of Windows Server convertible back and forth to Server Core installations without reinstallation, a whole slew of new Server Roles have become available for installation on the mean, clean Server Core installations.&lt;/p&gt;  &lt;p&gt;Active Directory Domain Services have been available since day 1 on Server Core installations, but what about the other four services? Can you install these on Server Core? &lt;/p&gt;  &lt;p&gt;The table below shows the Active Directory services, available for installation on Server Core installation of Windows Server 2008, Windows Server 2008 R2 and Windows Server 2012:&lt;/p&gt;  &lt;p&gt;&lt;img title="Table with Active Directory Services and their abaility to run on Server Core installations" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="Table with Active Directory Services and their abaility to run on Server Core installations" src="http://blogs.dirteam.com/blogs/sanderberkouwer/Table5xADS3xServerCore_1CE2C7AA.png" width="469" height="298" /&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;You can install the Active Directory Services on Server Core installations in four ways:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;From the command-line of the Server Core installation using:      &lt;ol&gt;       &lt;li&gt;&lt;strong&gt;dism.exe&lt;/strong&gt;,&lt;strong&gt; pkgmgr.exe&lt;/strong&gt; or the &lt;strong&gt;Install-WindowsFeature&lt;/strong&gt; / &lt;strong&gt;Add-WindowsFeature&lt;/strong&gt; PowerShell Cmdlet on Windows Server 2012 &lt;/li&gt;        &lt;li&gt;&lt;strong&gt;dism.exe&lt;/strong&gt; or&lt;strong&gt; pkgmgr.exe&lt;/strong&gt; or the &lt;strong&gt;Add-WindowsFeature&lt;/strong&gt; PowerShell Cmdlet (after you’ve manually installed PowerShell and have imported the &lt;strong&gt;ServerManager&lt;/strong&gt; PowerShell module) on Windows Server 2008 R2 &lt;/li&gt;        &lt;li&gt;&lt;strong&gt;ocsetup.exe&lt;/strong&gt; or&lt;strong&gt; pkgmgr.exe&lt;/strong&gt; on Windows Server 2008           &lt;br /&gt;&amp;#160; &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt;    &lt;li&gt;From the command-line of the Server Core installation over a Remote Desktop Connection. &lt;/li&gt;    &lt;li&gt;From a remote command-line of a Full installation of Windows, a full installation of Windows Server or another Server Core installation of Windows Server through remote PowerShell or Windows Remote Management (&lt;strong&gt;winrs.exe&lt;/strong&gt;). &lt;/li&gt;    &lt;li&gt;From Server Manager in Windows Server 2012, targeted at a Server Core installation of Windows Server 2012. This method does not work with Windows Server 2008 or Windows Server 2008 R2. &lt;/li&gt; &lt;/ol&gt;    &lt;h2&gt;Related blogposts&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/05/03/installing-server-core-domain-controllers.aspx"&gt;Installing Server Core Domain Controllers&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/10/04/how-to-install-a-server-core-r2-domain-controller.aspx"&gt;How to install a Server Core R2 Domain Controller&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/09/08/the-importance-of-server-core.aspx"&gt;The importance of Server Core&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/02/03/server-core-roles-and-features-in-2008-r2.aspx"&gt;Server Core Roles and Features in 2008 R2&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/09/24/some-server-core-domain-controllers-heading-for-a-dead-end-street.aspx"&gt;Some Server Core Domain Controllers heading for a dead end street&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/02/02/how-to-get-going-with-powershell-in-server-core-r2.aspx"&gt;How to get going with PowerShell in Server Core R2&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Further reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://4sysops.com/archives/server-roles-in-server-core-part-2-domain-controllers/"&gt;How to configure Windows Server 2012 Server Core as Domain Controller&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.technet.com/b/benp/archive/2008/06/20/how-to-configure-a-server-core-domain-controller-vanilla-to-first-dc-in-a-forest.aspx"&gt;How to Configure a Server Core Domain Controller: Vanilla to First DC in a Forest&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.technet.com/b/mpriem/archive/2007/12/11/windows-server-2008-server-core.aspx"&gt;Windows Server 2008 - Server Core&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://thenrml.wordpress.com/2009/12/26/install-an-additional-domain-controller-on-server-core-r2/"&gt;Install an Additional Domain Controller on Server Core R2&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6854" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Server+Core/default.aspx">Server Core</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2012/default.aspx">Microsoft Windows Server 2012</category></item><item><title>KnowledgeBase: You cannot use redirusr.exe and redircmp.exe in the Windows Server 2008 DFL on Windows Server 2008</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2013/04/15/knowledgebase-you-cannot-use-redirusr-exe-and-redircmp-exe-in-the-windows-server-2008-dfl-on-windows-server-2008.aspx</link><pubDate>Mon, 15 Apr 2013 15:29:53 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6823</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/6823.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=6823</wfw:commentRss><description>&lt;p&gt;&lt;img title="Bug" style="border-left-width:0px;border-right-width:0px;background-image:none;border-bottom-width:0px;float:right;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border-top-width:0px;" border="0" alt="Bug" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/bug_5121_7EC31837.png" width="120" height="120" /&gt;In the past years, I’ve found many systems and many errors. Today, I’m sharing behavior in Microsoft Windows Server that had me frown and chuckle. A bug in Active Directory code I’ve been grateful for, since it illustrates the nature of software. &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;/strong&gt;      &lt;br /&gt;This behavior has not been publicized in the Microsoft KnowledgeBase (yet).&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;In the past two versions of Windows Server, the Active Directory team has made an effort to migrate all of the command-line stuff to PowerShell. Two of the command-line tools I still use frequently, however, have not been converted to PowerShell: &lt;strong&gt;redirusr.exe&lt;/strong&gt; and &lt;strong&gt;redircmp.exe&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;redirusr.exe&lt;/strong&gt; and &lt;strong&gt;redircmp.exe&lt;/strong&gt; were my partners in crime for the last couple of years, in which I setup loads of Active Directory structures for small sized organizations, following the &lt;a href="http://technet.microsoft.com/en-us/library/bb727085.aspx"&gt;Best Practice Active Directory Design for Managing Windows Networks&lt;/a&gt;. I used them in newly setup environments to automatically place newly created computer and user accounts in specific Organizational Units (OUs) in Active Directory. &lt;/p&gt;  &lt;h3&gt;A short history on redirusr.exe and redircmp.exe&lt;/h3&gt;  &lt;p&gt;Microsoft introduced the ability to change the default container (or Organizational Unit) where new users and computers are stored in the Windows Server 2003 Domain Functional Level (DFL). Both tools won’t work in Windows 2000 Domain Functional Level. When using the commands on a Windows Server 2008-based Domain Controller for a domain with the Windows 2000 Domain Functional Level both tools error out with the following message:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#808080"&gt;Error, unable to modify the wellKnownObjects attribute. Verify that        &lt;br /&gt;the domain functional level of the domain is at least Windows Server 2003:         &lt;br /&gt;Unwilling To Perform         &lt;br /&gt;Redirection was NOT successful.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This is by design. As the error indicates you need to raise the Domain Functional Level (DFL) to Windows Server 2003. It is not the subject of this blogpost. &lt;img class="wlEmoticon wlEmoticon-winkingsmile" style="border-top-style:none;border-left-style:none;border-bottom-style:none;border-right-style:none;" alt="Knipogende emoticon" src="http://blogs.dirteam.com/blogs/sanderberkouwer/wlEmoticon-winkingsmile_035922F2.png" /&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Using redirusr.exe and redircmp.exe&lt;/h2&gt;  &lt;p&gt;On a Windows Server 2003-based Domain Controller and Windows Server 2008-based Domain Controller in an Active Directory domain with the Windows Server 2003 Domain Functional Level (DFL) you can use the following commands:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#000000"&gt;&lt;strong&gt;dsadd ou &amp;quot;OU=&lt;/strong&gt;&lt;em&gt;Redirected Users OU&lt;/em&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;u&gt;&lt;em&gt;DomainName&lt;/em&gt;&lt;/u&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;em&gt;Tld&lt;/em&gt;&lt;/font&gt;&lt;font color="#000000"&gt;&lt;strong&gt;&amp;quot;          &lt;br /&gt;dsadd ou &amp;quot;OU=&lt;/strong&gt;&lt;em&gt;Redirected Computers OU&lt;/em&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;em&gt;DomainName&lt;/em&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;em&gt;Tld&lt;/em&gt;&lt;/font&gt;&lt;font color="#000000"&gt;&lt;strong&gt;&amp;quot;          &lt;br /&gt;redirusr &amp;quot;OU=&lt;/strong&gt;&lt;em&gt;Redirected Users OU&lt;/em&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;u&gt;&lt;em&gt;DomainName&lt;/em&gt;&lt;/u&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;em&gt;Tld&lt;/em&gt;&lt;/font&gt;&lt;font color="#000000"&gt;&lt;strong&gt;&amp;quot;          &lt;br /&gt;redircmp &amp;quot;OU=&lt;/strong&gt;&lt;em&gt;Redirected Computers OU&lt;/em&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;em&gt;DomainName&lt;/em&gt;&lt;strong&gt;,DC=&lt;/strong&gt;&lt;em&gt;Tld&lt;/em&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;These commands will add two Organizational Units with names &lt;strong&gt;&lt;font color="#000000"&gt;Redirected Users OU&lt;/font&gt;&lt;/strong&gt; and &lt;strong&gt;&lt;font color="#000000"&gt;Redirected Computers OU&lt;/font&gt;&lt;/strong&gt;. After creation it will run the two commands to automagically place new useraccounts and computeraccounts in the new OUs.&lt;/p&gt;  &lt;p&gt;The below two commands will output the following message, when successful:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#808080"&gt;Redirection was successful.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Now for the bug…&lt;/h1&gt;  &lt;p&gt;I expected the above commands to work on a Windows Server 2008-based Domain Controller for an Active Directory domain with the Windows Server 2008 Domain Functional Level (DFL)…&lt;/p&gt;  &lt;p&gt;Unfortunately this is not the case. The error message is:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#808080"&gt;Error, unable to modify the wellKnownObjects attribute. Verify that        &lt;br /&gt;the domain functional level of the domain is at least Windows Server 2003:         &lt;br /&gt;Referral         &lt;br /&gt;Redirection was NOT successful.&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Obviously the &lt;font color="#808080"&gt;Verify that the domain functional level of the domain is at least Windows Server 2003&lt;/font&gt; part of the message is a standard message, but the part behind it is different, compared to the Windows 2000 Domain Functional Level output. It is apparently willing to perform, but was referred.&lt;/p&gt;  &lt;p&gt;This is actual behavior on a Domain Controller running Windows Server 2008 RTM. (or Windows Server 2008 with Service Pack 1, if you want to be 100% correct)&lt;/p&gt;  &lt;p&gt;Unfortunately there is no way to redirect users and computers using the &lt;font color="#808080"&gt;&lt;strong&gt;redirusr.exe&lt;/strong&gt;&lt;/font&gt; and &lt;strong&gt;&lt;font color="#808080"&gt;redircmp.exe&lt;/font&gt;&lt;/strong&gt; commands on a Windows Server 2008 RTM-based Domain Controller in an Active Directory domain with the Windows Server 2008 Domain Functional Level (DFL).&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h1&gt;The workaround&lt;/h1&gt;  &lt;p&gt;To use the &lt;strong&gt;redirusr.exe&lt;/strong&gt; and &lt;strong&gt;redircmp.exe&lt;/strong&gt; commands in an Active Directory domain with the Windows Server 2008 Domain Functional Level (DFL), either:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Install Service Pack 2 on a Windows Server 2008-based Domain Controller and run the commands on this Domain Controller, or &lt;/li&gt;    &lt;li&gt;Upgrade a Domain Controller to Windows Server 2008 R2 or Windows Server 2012 and run the commands on this Domain Controller. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Further reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/324949"&gt;Redirecting the users and computers containers in Windows Server 2003 domains&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://thelazyadmin.com/blogs/thelazyadmin/archive/2006/07/04/Redirect-New-Users-and-Computers-to-an-OU.aspx"&gt;The Lazy Admin : Redirect New Users and Computers to an OU&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.windowsdevcenter.com/pub/a/windows/2003/10/14/activedirectory.html"&gt;Overview of the New Active Directory Tools in Windows Server 2003&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://wize.spaces.live.com/Blog/cns!4285B3D83ED27F64!514.entry"&gt;Redirecting the computers container in Windows Server 2003 domains&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.jasemccarty.com/blog/2008/10/organizational-units-and-virtual.html"&gt;Organizational Units, and Virtual Machines&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6823" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/System+Administration/default.aspx">System Administration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category></item><item><title>MS013-032 Vulnerability in Active Directory Could Allow Remote Code Execution (Important)</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2013/04/10/ms013-032-vulnerability-in-active-directory-could-allow-remote-code-execution-important.aspx</link><pubDate>Wed, 10 Apr 2013 08:25:59 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6817</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/6817.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=6817</wfw:commentRss><description>&lt;p&gt;It’s not often, that Active Directory Domain Controllers get security updates. The Active Directory Domain Services Server Role is one of the most robustly written code, as I pointed out in &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/12/14/statistics-on-active-directory-related-security-bulletins.aspx"&gt;an earlier blogpost on Statistics on Active Directory-related Security Bulletins&lt;/a&gt;. Since 2001, Microsoft has issued 18 Security Bulletins with patches to address issues in Active Directory Directory Services, Active Directory Lightweight Directory Services and ADAM. &lt;/p&gt;  &lt;p&gt;Yesterday, during the April 2013 Patch Tuesday, Microsoft has released a new Active Directory-related security bulletin: &lt;strong&gt;&lt;a href="http://technet.microsoft.com/en-us/security/bulletin/ms13-032"&gt;MS013-032&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;This security update resolves a privately reported vulnerability in Active Directory. The vulnerability could allow denial of service if an attacker sends a specially crafted query to the Lightweight Directory Access Protocol (LDAP) service, that leads to excessive memory consumption and could cause the LDAP service to become non-responsive. This issue was privately reported to Microsoft and documented as CVE-2013-1282&lt;/p&gt;  &lt;p&gt;This Security update is not classified as Critical, since an attacker must have valid logon credentials to exploit this vulnerability. The vulnerability could not be exploited remotely by anonymous users. However, the affected component is available remotely to users who have standard user accounts. In certain configurations, anonymous users could authenticate as the Guest account.&lt;/p&gt;  &lt;p&gt;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Affected Operating Systems&lt;/h1&gt;  &lt;p&gt;This security update is rated Important for Active Directory, Active Directory Application Mode (ADAM), Active Directory Lightweight Directory Service (AD LDS), and Active Directory Services on the following, currently supported, Windows Server Operating Systems:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Active Directory on Windows Server 2003 SP2 x86&lt;/li&gt;    &lt;li&gt;Active Directory on Windows Server 2003 SP2 x64&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows Server 2003 SP2 x86&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows Server 2003 SP2 x64&lt;/li&gt;    &lt;li&gt;Active Directory Services on Windows Server 2008 SP2 x86&lt;/li&gt;    &lt;li&gt;Active Directory Services on Windows Server 2008 SP2 x64&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows Server 2008 SP2 x86&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows Server 2008 SP2 x64&lt;/li&gt;    &lt;li&gt;Active Directory Services on Windows Server 2008 R2&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows Server 2008 R2&lt;/li&gt;    &lt;li&gt;Active Directory Services on Windows Server 2008 R2 SP1&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows Server 2008 R2 SP1&lt;/li&gt;    &lt;li&gt;Active Directory Services on Windows Server 2012&lt;/li&gt;    &lt;ul&gt;&lt;/ul&gt;    &lt;ul&gt;&lt;/ul&gt;    &lt;ul&gt;&lt;/ul&gt; &lt;/ul&gt;  &lt;p&gt;This security update is rated Low for Active Directory Application Mode (ADAM) and Active Directory Lightweight Directory Services (AD LDS) on the following, currently supported, Windows client Operating Systems:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Active Directory Application Mode (ADAM) on Windows XP SP3&lt;/li&gt;    &lt;li&gt;Active Directory Application Mode (ADAM) on Windows XP Professional x64 SP2&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows Vista SP2 x86&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows Vista SP2 x64&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows 7 x86&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows 7 x64&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows 7 SP1 x86&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows 7 SP1 x64&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows 8 x86&lt;/li&gt;    &lt;li&gt;Active Directory Lightweight Directory Service (AD LDS) on Windows 8 x64&lt;/li&gt;    &lt;ul&gt;&lt;/ul&gt;    &lt;ul&gt;     &lt;ul&gt;&lt;/ul&gt; &lt;/ul&gt; &lt;/ul&gt;  &lt;p&gt;The security update addresses the vulnerability by correcting how the LDAP service handles specially crafted LDAP queries. &lt;/p&gt;  &lt;p&gt;On all affected Operating Systems, except for Windows 8 and Windows Server 2012, this security update replaces Security update &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/12/14/ms11-095-vulnerability-in-active-directory-could-allow-remote-code-execution-important.aspx"&gt;MS011-095&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Guidance&lt;/h1&gt;  &lt;p&gt;You are urged to test and implement the update corresponding to the Security Bulletin on the affected Operating Systems running the aforementioned Active Directory services.&lt;/p&gt;  &lt;h2&gt;Related Posts&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/02/12/ms08-003-security-update-for-active-directory.aspx"&gt;MS08-003 Security Update for Active Directory&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/06/10/a-new-vulnerability-in-active-directory-ms09-018.aspx"&gt;A New Vulnerability in Active Directory (MS09-018)&lt;/a&gt;     &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/12/14/ms11-095-vulnerability-in-active-directory-could-allow-remote-code-execution-important.aspx"&gt;MS11-095 Vulnerability in Active Directory could allow Remote Code Execution (Important)&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/12/14/statistics-on-active-directory-related-security-bulletins.aspx"&gt;Statistics on Active Directory-related Security Bulletins&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Further reading &lt;/h2&gt;  &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/security/bulletin/ms13-032"&gt;Microsoft Security Bulletin MS13-032 – Important&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="https://support.microsoft.com/kb/2830914"&gt;MS13-032: Vulnerability in Active Directory could lead to denial of service: April 9, 2013&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.symantec.com/security_response/vulnerability.jsp?bid=58848&amp;amp;om_rssid=sr-advisories"&gt;Microsoft Windows Active Directory CVE-2013-1282 Denial of Service Vulnerability&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2013-1282"&gt;Vulnerability Summary for CVE-2013-1282&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6817" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Security+Updates/default.aspx">Security Updates</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2012/default.aspx">Microsoft Windows Server 2012</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Enterprise+Security/default.aspx">Enterprise Security</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2003/default.aspx">Microsoft Windows Server 2003</category></item><item><title>PowerShell, LDIFDE, CSVDE and Protection from Accidental Deletion</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2012/12/28/powershell-ldifde-csvde-and-protection-from-accidental-deletion.aspx</link><pubDate>Fri, 28 Dec 2012 06:48:54 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6719</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/6719.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=6719</wfw:commentRss><description>&lt;p&gt;&lt;img title="Import Data into Active Directory" style="border-top:0px;border-right:0px;background-image:none;border-bottom:0px;float:right;padding-top:0px;padding-left:0px;margin:8px 0px 0px 10px;border-left:0px;display:inline;padding-right:0px;" border="0" alt="Import Data into Active Directory" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/ImportActiveDirectory_00259463.png" width="128" height="100" /&gt;When you build test environments regularly, at some point you’ll want to fill your Active Directory quickly. If, for instance, you have a data set with Organizational Units (OUs), user accounts and groups, you’ll want to quickly import this data. If, on the other hand, in your business you’re allowed to use the user information from a production Active Directory environment in your test environment, you might even opt to export and import this information. &lt;/p&gt;  &lt;p&gt;Besides restoring backups from Domain Controllers to the test environment, Microsoft offers three tools to import exported data:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Import-CSV &amp;amp; New-ADOrganizationalUnit&lt;/li&gt;    &lt;li&gt;Csvde.exe&lt;/li&gt;    &lt;li&gt;Ldifde.exe&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;From the surface, these three tools seem to enable you to achieve the same goal, but they don’t. The end result after importing and exporting data is not the same between these three tools.&lt;/p&gt;  &lt;p&gt;When you use the &lt;strong&gt;New-ADOrganizationalUnit&lt;/strong&gt; PowerShell Cmdlet (together with the &lt;strong&gt;Import-CSV&lt;/strong&gt; Cmdlet in this case) in a script, unless you specify otherwise, the created Organizational Units will be protected from accidental deletion.&lt;/p&gt;  &lt;p&gt;When you use &lt;strong&gt;ldifde.exe&lt;/strong&gt; or &lt;strong&gt;csvde.exe&lt;/strong&gt; tool to (export and) import Organizational Units (OUs), these OUs will be created &lt;strong&gt;&lt;font color="#ff0000"&gt;without&lt;/font&gt;&lt;/strong&gt; protection from accidental deletion.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;&lt;font color="#0080ff"&gt;Note:&lt;/font&gt;&lt;/strong&gt;      &lt;br /&gt;The Active Directory Best Practices Analyzer will display a warning when not all Organizational Units (OUs) are protected from accidental deletion.       &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/07/13/preventing-ous-and-containers-from-accidental-deletion.aspx"&gt;More info&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Protection from accidental deletion looks like a simple checkmark in the properties of an Active Directory object, but it’s not. Underlying is a set of ACLs that prevent anyone from deleting the object. But since PowerShell has the logic inside for Protection from accidental deletion, to fix the newly created Organizational Units, use the following PowerShell one-liner:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Get-ADOrganizationalUnit -filter {name -like &amp;quot;*&amp;quot;} -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Concluding&lt;/h1&gt;  &lt;p&gt;With new functionality in new Operating Systems and Active Directory levels, don’t expect the old tooling you’ve learned to trust and love, to be updated.&lt;/p&gt;  &lt;h2&gt;Related Posts&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/07/13/preventing-ous-and-containers-from-accidental-deletion.aspx"&gt;Preventing OUs and Containers from Accidental Deletion&lt;/a&gt; &lt;/p&gt;  &lt;h2&gt;Further reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc739350(WS.10).aspx"&gt;Protect an Organizational Unit from Accidental Deletion&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/dd723677(v=WS.10).aspx"&gt;All OUs in this domain should be protected from accidental deletion&lt;/a&gt;     &lt;br /&gt;&lt;a href="http://msmvps.com/blogs/ulfbsimonweidner/archive/2007/09/25/protect-objects-from-accidential-deletion-in-windows-server-2008.aspx"&gt;Protect Objects from accidential deletion&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/09/13/protecting-ou-from-accidental-deletion.aspx"&gt;Protecting OU from accidental deletion&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.open-a-socket.com/index.php/2008/05/30/protection-from-accidental-deletion/"&gt;Protection from Accidental Deletion&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.technet.com/b/industry_insiders/archive/2007/10/31/windows-server-2008-protection-from-accidental-deletion.aspx"&gt;Windows Server 2008 Protection from Accidental Deletion&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6719" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Setup+_2600_amp_3B00_+Deployment/default.aspx">Setup &amp;amp; Deployment</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2012/default.aspx">Microsoft Windows Server 2012</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Active Directory in Hyper-V environments, Part 7</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2012/11/16/active-directory-and-hyper-v-part-7.aspx</link><pubDate>Fri, 16 Nov 2012 06:51:49 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:6606</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/6606.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=6606</wfw:commentRss><description>&lt;p&gt;&lt;img style="float:right;display:inline;" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/knowledgebase_2C33CF3E.jpg" /&gt;For a while, Microsoft’s KnowledgeBase article 976424, titled &lt;a href="http://support.microsoft.com/kb/976424"&gt;Error code when the kpasswd protocol fails after you perform an authoritative restore: &amp;quot;KDC_ERROR_S_PRINCIPAL_UNKNOWN&amp;quot;&lt;/a&gt;, has been available to solve issues with unexpected behavior after authoritatively restoring&amp;#160; the &lt;strong&gt;krbtg&lt;/strong&gt; account on Windows Server 2008 and Windows Server 2008 R2-based Domain Controllers.&lt;/p&gt;  &lt;p&gt;Now, in KnowledgeBase article 2784261, titled &lt;a href="http://support.microsoft.com/kb/2784261"&gt;Recommended hotfixes and updates for Windows Server 2012-based Failover Clusters&lt;/a&gt;, Microsoft recommends the hotfix for Windows Server 2012-based Failover Clusters, quoting:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#ff0000"&gt;Install on every domain controller running Windows Server 2008 Service Pack 2 or Windows Server 2008 R2 in order to add a Windows Server 2012 failover cluster. Otherwise Create Cluster may fail when attempting to set the password for the cluster computer object with error message: &lt;b&gt;CreateClusterNameCOIfNotExists (6783): Unable to set password on &amp;lt;ClusterName$&amp;gt;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;These days, most fail-over clusters are deployed to provide a robust, scalable and highly-available virtualization platform using Hyper-V. If you plan a Windows Server 2012-based Fail-over Cluster in your environment running Windows Server 2008 or Windows Server 2008 R2-based Domain Controllers, apply this hotfix during the next service window.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;&lt;font color="#0080ff"&gt;Note:&lt;/font&gt;&lt;/strong&gt;       &lt;br /&gt;Domain Controllers need to restart to apply this hotfix.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;In this series&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/13/active-directory-in-hyper-v-environments-part-1.aspx"&gt;Active Directory in Hyper-V environments, Part 1&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/14/active-directory-in-hyper-v-environments-part-2.aspx"&gt;Active Directory in Hyper-V environments, Part 2&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/15/active-directory-in-hyper-v-environments-part-3.aspx"&gt;Active Directory in Hyper-V environments, Part 3&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/11/21/active-directory-in-hyper-v-environments-part-4.aspx"&gt;Active Directory in Hyper-V environments, Part 4&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/04/21/active-directory-in-hyper-v-environments-part-5.aspx"&gt;Active Directory in Hyper-V environments, Part 5&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/10/27/active-directory-in-hyper-v-environments-part-6.aspx"&gt;Active Directory in Hyper-V environments, Part 6&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Related KnowledgeBase articles&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://support.microsoft.com/kb/976424"&gt;Error code when the kpasswd protocol fails after you perform an authoritative restore: &amp;quot;KDC_ERROR_S_PRINCIPAL_UNKNOWN&amp;quot;&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/968140"&gt;The kpasswd protocol fails with a KDC_ERR_S_PRINCIPAL_UNKNOWN error after you perform an authoritative restore on the krbtgt account in a Windows Server 2008 domain&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/2784261"&gt;Recommended hotfixes and updates for Windows Server 2012-based Failover Clusters&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Further reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://robertsmit.wordpress.com/"&gt;The System Center Connector Robert Smit Cluster MVP&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Tipjar&lt;/h2&gt;  &lt;p&gt;&lt;a href="https://twitter.com/Clustermvp"&gt;Robert Smit&lt;/a&gt;, a Dutch Microsoft MVP on Fail-over Clustering and my friend, pointed this out to me on twitter this morning.&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=6606" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Virtualization/default.aspx">Virtualization</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2012/default.aspx">Microsoft Windows Server 2012</category></item><item><title>DCPROMO Advanced Mode, what does it do?</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/10/14/dcpromo-advanced-mode-what-does-it-do.aspx</link><pubDate>Fri, 14 Oct 2011 12:10:33 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:5966</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/5966.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=5966</wfw:commentRss><description>&lt;p&gt;In the past 11 years, Microsoft has released four versions of Windows Server on which you could install Active Directory. On all these platforms, Microsoft offered two ways to promote a server to a Domain Controller.&lt;/p&gt;  &lt;p&gt;In this blogpost I’ll reveal the differences between the advanced mode and normal mode for &lt;strong&gt;dcpromo.exe&lt;/strong&gt; for the Windows Server 2003 family and the Windows Server 2008 family. I’ll also cover the differences between using the &lt;strong&gt;Configure your Server &lt;/strong&gt;wizard and &lt;strong&gt;dcpromo.exe&lt;/strong&gt; on Windows 2000 Server.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Windows 2000 Server&lt;/h1&gt;  &lt;p&gt;Active Directory was introduced in Windows 2000 Server. Overshadowing User and Computer management from the Windows NT era, Active Directory introduced totally new concepts. To make the promotion of a Domain Controller not too daunting, Microsoft shipped two ways to accomplish this:&lt;/p&gt;  &lt;h3&gt;Configure your Server wizard&lt;/h3&gt;  &lt;p&gt;The Configure Your Server wizard is a special wizard, that you can use to transform a vanilla Windows 2000 Server into a Domain Controller. Since, at installation you already need to provide a keyboard lay-out, computer name and time zone, you can use the wizard to assign a static IPv4 address and install Active Directory Domain Services on it. &lt;/p&gt;  &lt;p&gt;One important thing to note is that the Configure Your Server wizard can only be used to create a new Domain Controller for a new domain in a new forest, and many options have gone missing. You will need to provide a DNS domain name and NetBIOS domain name, but you cannot specify the location of Active Directory logs, the Active Directory database or the System Volume (SYSVOL). Also, the wizard assumes you’re OK with a blank Directory Services Restore Mode password. &lt;/p&gt;  &lt;p&gt;A blank Directory Services Restore Mode password is a serious security issue, since anyone with physical access to the Domain Controller can boot it into Directory Services Restore Mode and press &lt;strong&gt;Enter&lt;/strong&gt; as the password. It’s better to use dcpromo.exe to promote a server to a Domain Controller.&lt;/p&gt;  &lt;h3&gt;Dcpromo.exe&lt;/h3&gt;  &lt;p&gt;Of course, Windows 2000 Server came with &lt;strong&gt;dcpromo.exe&lt;/strong&gt;. An admin could use it to promote a server to a Domain Controller. In Windows 2000 Server, &lt;strong&gt;dcpromo.exe&lt;/strong&gt; is only available in one mode.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Windows Server 2003 &amp;amp; 2003 R2&lt;/h1&gt;  &lt;p&gt;In Windows Server 2003, both normal mode and advanced mode for dcpromo.exe are available, but if you want to access the advanced mode you will need to resort to the commandline. Where firing up dcpromo.exe will present you with the normal mode, you will have to run &lt;strong&gt;dcpromo.exe /adv&lt;/strong&gt; to enter advanced mode.&lt;/p&gt;  &lt;h3&gt;New Domain Controller for a new forest&lt;/h3&gt;  &lt;p&gt;Why any Active Directory admin would choose the advanced mode to promote a server to a Domain Controller for a new domain in a new forest is beyond me. There is no difference between these two modes in this scenario.&lt;/p&gt;  &lt;p&gt;Also, in both modes you can choose to implement a Domain Controller for a new domain, a new child domain in an existing domain tree or a new domain tree in an existing forest.&lt;/p&gt;  &lt;h3&gt;New Domain Controller for an existing domain/forest&lt;/h3&gt;  &lt;p&gt;One difference between advanced mode and normal mode can be found when you add a server as a Domain Controller for an existing domain or as a Domain Controller for a new domain in an existing forest. In this case you’ll be presented with the following screen:&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://blogs.dirteam.com/blogs/sanderberkouwer/image_44F83B64.png" width="503" height="385" /&gt;&lt;/p&gt;  &lt;p&gt;In advanced mode you can use the Install from Media (IfM) option. You can create media by making System State Backups for an existing Domain Controller in the same domain as where you want to deploy the additional Domain Controller.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Windows Server 2008 &amp;amp; 2008 R2&lt;/h1&gt;  &lt;p&gt;In Windows Server 2008 R2, after installing the Active Directory Domain Services role, you can run dcpromo.exe. On the Welcome screen you are immediately presented with the option to &lt;strong&gt;Use &lt;u&gt;a&lt;/u&gt;dvanced mode installation&lt;/strong&gt;.&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="Dcpromo2008R2AdvSelect" border="0" alt="Dcpromo2008R2AdvSelect" src="http://blogs.dirteam.com/blogs/sanderberkouwer/Dcpromo2008R2AdvSelect_2AB7D240.gif" width="510" height="483" /&gt;&lt;/p&gt;  &lt;h3&gt;New Domain Controller for a new forest&lt;/h3&gt;  &lt;p&gt;When you promote the server to a new Domain Controller for a new forest, using Advanced mode, only offers you one additional screen, compared to the standard mode. This screen (as depicted below) offers to enter the NetBIOS Name for the domain. &lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="Dcpromo2008R2AdvNetBIOS" border="0" alt="Dcpromo2008R2AdvNetBIOS" src="http://blogs.dirteam.com/blogs/sanderberkouwer/Dcpromo2008R2AdvNetBIOS_0EA71355.gif" width="510" height="483" /&gt;&lt;/p&gt;  &lt;p&gt;By default, the value depicted in the field &lt;strong&gt;Domain NetBIOS name&lt;/strong&gt; would be the part of the DNS domain name that distinguishes the domain from the domain structure. In the screen you have the option to change the NetBIOS name for the domain. One of the reasons why you would want to do that, would be to change the name depicted in the logon screen of Windows clients like Windows 2000 Professional and Windows XP Professional. &lt;/p&gt;  &lt;h3&gt;New Domain Controller for an existing domain/forest&lt;/h3&gt;  &lt;p&gt;When you look at the advanced mode options when you add the server as a Domain Controller for an existing forest, a lot more options emerge.&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="DCpromo2008R2NewDomainInForest" border="0" alt="DCpromo2008R2NewDomainInForest" src="http://blogs.dirteam.com/blogs/sanderberkouwer/DCpromo2008R2NewDomainInForest_6E8C0697.gif" width="510" height="482" /&gt;&lt;/p&gt;  &lt;p&gt;First, in the &lt;strong&gt;Choose a Deployment Configuration&lt;/strong&gt; screen, an extra option emerges, that allows for deployment of a Domain Controller for a new domain tree root instead of a new child domain. This allows you to create a pokkiewokkie.local domain in the same forest as the hakkietakkie.local domain and its child domains, like korea.hakkietakkie.local and china.hakkietakkie.local. (these domain names are purely fictional)&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="DCpromo2008R2InstallFromMedia" border="0" alt="DCpromo2008R2InstallFromMedia" src="http://blogs.dirteam.com/blogs/sanderberkouwer/DCpromo2008R2InstallFromMedia_4E70F9DA.gif" width="510" height="482" /&gt;     &lt;br /&gt;&lt;/p&gt;  &lt;p&gt;The next difference between normal and advanced mode dcpromo is the ability to Install from Media (IfM) in the advanced mode. When you create an IfM-package on a Domain Controller (of the same type as you’re installing), you can use that package to limit replication of Active Directory data. You can create IfM packages, including the information in the System Volume using &lt;strong&gt;ntdsutil.exe,&lt;/strong&gt;&amp;#160; as described &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/04/26/active-directory-domain-services-command-fu-part-5.aspx#CommandFuIFMSsyvol" target="_blank"&gt;here&lt;/a&gt;. Using IfM is useful when you want to deploy a Domain Controller in a remote site with limited (available) bandwidth.&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="DCpromo2008R2SourceDC" border="0" alt="DCpromo2008R2SourceDC" src="http://blogs.dirteam.com/blogs/sanderberkouwer/DCpromo2008R2SourceDC_2E55ED1D.gif" width="510" height="482" /&gt;&lt;/p&gt;  &lt;p&gt;Last, but certainly not least is the ability to specify a Source Domain Controller to use for replication during the promotion of the Domain Controller. While by default &lt;strong&gt;dcpromo.exe&lt;/strong&gt; would find a suitable replication partner using the Active Directory topology, you could use this option if you want to avoid additional load on critical Domain Controllers or to specify a Domain Controller in times when replication is not working adequately.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Concluding&lt;/h1&gt;  &lt;p&gt;This post clearly shows the evolution of the Domain Controller promotion process since Windows 2000 Server. Through the years, Microsoft has laid down the groundwork in terms of knowledge and readiness among admins, and has hidden a lot of new features in a more advanced but more daunting ‘advanced mode’ for Active Directory professionals..&amp;#160; &lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" title="DCPromoOverview" border="0" alt="DCPromoOverview" src="http://blogs.dirteam.com/blogs/sanderberkouwer/DCPromoOverview_0E3AE060.gif" width="518" height="842" /&gt;&lt;/p&gt;  &lt;p&gt;After reading this blogpost, you’ll know whether to use advanced mode to accomplish your goals or just to make yourself feel like a big shot Active Directory administrator.&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=5966" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server/default.aspx">Microsoft Windows Server</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>How to effectively defend against Morto.A in the enterprise</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/09/02/how-to-effectively-defend-against-morto-a-in-the-enterprise.aspx</link><pubDate>Fri, 02 Sep 2011 19:59:00 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:5949</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/5949.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=5949</wfw:commentRss><description>&lt;p&gt;Whenever a worm utilizes the normal access and daily tools systems admins use, there is a significant problem. After all, shutting down the attack vector suddenly isn’t that easy. So, without making dramatic changes to your environment, how can you rest assured?&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;About Win32/Morto.A &lt;/h2&gt;  &lt;p&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px 0px 0px 10px;padding-left:0px;padding-right:0px;display:inline;float:right;border-top:0px;border-right:0px;padding-top:0px;" title="Errorshield" border="0" alt="Errorshield" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/Errorshield_4DF18FD7.png" width="96" height="96" /&gt;One of the latest threats to use administrative access is Win32/Morto. This worm scans entire IP address ranges for port 3389 and uses the Remote Desktop Protocol (RDP) to log on to the Remote Desktops of Windows machines through guessing usernames and passwords. When it succeeds it uses an exploit to gain administrative access to try and infect other machines. &lt;/p&gt;  &lt;p&gt;We’re now seeing the first version of this worm, but since the modest success of it, we might see other incarnations sporting longer username and password lists alongside other exploits. In a worst case scenario, Morto might evolve to include brute forcing techniques to gain access to machines. &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;The problem&lt;/h1&gt;  &lt;p&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;margin:0px 15px 0px 0px;padding-left:0px;padding-right:0px;display:inline;float:left;border-top:0px;border-right:0px;padding-top:0px;" title="rdp" border="0" alt="rdp" align="left" src="http://blogs.dirteam.com/blogs/sanderberkouwer/rdp_6E485E22.gif" width="124" height="123" /&gt;Remote Desktop Protocol (RDP) is used heavily by admins to log on to workstations and servers. Although manageability features in newer versions of Windows allow admins to remotely perform (routine) actions through PowerShell, Group Policy Preferences and Server Manager, many admins still rely on Remote Desktop. Especially when they need to change settings in non-Microsoft products running on top of their machines. Switching off Remote Desktop is not seen as a solution to defend against this threat.&lt;/p&gt;  &lt;p&gt;Many Internet-facing Windows webservers have Remote Desktop enabled to allow the admin to manage the server remotely. Either from the office or home, since flexibility is key when the box gets compromised.&lt;/p&gt;  &lt;p&gt;Many organizations work with passwords to allow their employees to authenticate. In recent versions of Windows, password complexity is enforced by default, but in many organizations people are allowed to use weak passwords, either for (reduced) single sign-on or other reasons. Two factor authentication is not widely used, especially not for service accounts.&lt;/p&gt;  &lt;p&gt;Shutting off Remote Desktop is not an option in these situations, so how does one effectively defend against Morto?&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Defending against Morto.A&lt;/h1&gt;  &lt;p&gt;You can effectively battle Morto.A in many ways. I’ll describe the countermeasures below. Combining multiple of these countermeasures increases your success:&lt;/p&gt;  &lt;h3&gt;Apply a stringent and complete authentication policy&lt;/h3&gt;  &lt;p&gt;A good defense is to use strong passwords throughout the networking infrastructure. Since tokens or smartcards can not be implemented overnight and are not suitable for all authentication purposes (for instance service accounts), this is probably the best short term defense. &lt;/p&gt;  &lt;p&gt;Windows and Active Directory both include password policies. Since Windows Server 2008, the option ‘&lt;a href="http://technet.microsoft.com/en-us/library/cc786468(WS.10).aspx" target="_blank"&gt;Password must meet complexity requirements&lt;/a&gt;’ is default enabled, requiring newly set passwords to adhere to complexity rules. These rules include the use of at least 7 uppercase and lowercase characters, numbers and non-alphanumeric characters (3 out of 4) and prevent the use of a significant portion of the logon name. Other tidbits of the default password policies include a minimum length of six characters.&lt;/p&gt;  &lt;p&gt;In many environments, these password policies were (temporarily) disabled. From an authentication security point of view this is horrendous, since it allows anyone to use weak passwords. Even admins can use weak passwords to secure the service accounts, most of which are able to log on anywhere.&lt;/p&gt;  &lt;p&gt;You have a couple of options on getting your users to use stronger passwords:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;strong&gt;Re-enable password policies        &lt;br /&gt;&lt;/strong&gt;For a stand-alone server, this is accomplished through the Local Security Policy (&lt;strong&gt;secpol.msc&lt;/strong&gt;) under &lt;strong&gt;Account Policies&lt;/strong&gt; in the &lt;strong&gt;Password Policy&lt;/strong&gt;.       &lt;p&gt;To change the password policies for an entire Active Directory domain, open the Group Policy editor (&lt;strong&gt;gpedit.msc&lt;/strong&gt;) and browse for the &lt;strong&gt;default domain policy&lt;/strong&gt;. Here under &lt;strong&gt;Computer Configuration&lt;/strong&gt;, then &lt;strong&gt;Windows Settings&lt;/strong&gt;, &lt;strong&gt;Security Settings&lt;/strong&gt;, &lt;strong&gt;Account Policies&lt;/strong&gt; and finally under &lt;strong&gt;Password Policy&lt;/strong&gt; change the settings for minimum password length and password complexity. Changing these setting in another group policy on the domain level, will lead to the above change in the default domain policy. Changing these settings on another level in Active Directory (for instance on a Site or Organization Unit will not have an effect on user accounts in the domain). &lt;/p&gt; Off course, for your entire network, you might need to change these settings on all your domains.      &lt;br /&gt;      &lt;br /&gt;      &lt;blockquote&gt;       &lt;p&gt;&lt;font color="#0080ff"&gt;&lt;strong&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;/strong&gt;            &lt;br /&gt;&lt;/font&gt;If you want to restrict password policies to users of your Terminal servers only, you’ve set up your environment according to best practices and you’re using at least Windows Server 2008 Domain Controllers, you can also create a Fine-grained Password Policy to the ‘Remote Desktop Users’ group.          &lt;br /&gt;&amp;#160;&amp;#160; &lt;/p&gt;     &lt;/blockquote&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Clearing the ‘password never expires’ settings on user accounts        &lt;br /&gt;&lt;/strong&gt;Getting everyone a new password is not as easy as re-enabling the default password policy. Some users may not be compelled to change their passwords (since the option ‘Password never expires’ is checked in the account properties), while other users still have a lease on their current passwords, that only compel them to change it in a couple of weeks. The below one-liner script will clear the ‘Password never expires’ for all user accounts in a certain Organizational Unit:       &lt;blockquote&gt;       &lt;p&gt;&lt;strong&gt;dsquery user &amp;quot;ou=useraccounts,dc=domain,dc=tld&amp;quot; | dsmod user -pwdneverexpires no&lt;/strong&gt;&lt;/p&gt;     &lt;/blockquote&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Setting the ‘User must change password at next logon’ attribute        &lt;br /&gt;&lt;/strong&gt;Again, enabling password policies for new passwords and clearing the ‘password never expires’ settings is not enough. Users will still have passwords that don’t need to be changed, simply because these passwords are not at the end of their lifetime (as defined in the password policy). To force all users in a certain Organizational Unit to change their password, use the following one-liner:       &lt;blockquote&gt;       &lt;p&gt;&lt;strong&gt;dsquery user &amp;quot;ou=useraccounts,dc=domain,dc=tld&amp;quot; | dsmod user -mustchpwd yes&lt;/strong&gt;&lt;/p&gt;     &lt;/blockquote&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;h3&gt;&lt;strong&gt;Secure Service Accounts&amp;#160; &lt;/strong&gt;&lt;/h3&gt;  &lt;p&gt;Changing passwords on Service Accounts is not a small change. Breaking essential services like Exchange Server or the backup is not an appropriate risk to take in order to defend against Morto. &lt;/p&gt;  &lt;p&gt;On of the new features of Active Directory in Windows Server 2008 R2 is Managed Service Accounts. Managed Service Accounts (MSAs) are virtual domain accounts that can be used on Windows 7 and Windows Server 2008 R2 in Active Directory environments running Windows Server 2003 and Windows Server 2008 Functional levels. Domains at the Windows Server 2008 R2 functional level provide native support for both automatic password management and SPN management. This means, that when you’re only running Windows Server 2008 R2-based Domain Controllers, you don’t need to worry about Service Account passwords no more; Active Directory will take care of that (with the restriction that you can only use an MSA on one domain member).&lt;/p&gt;  &lt;p&gt;Another route to prevent the misuse of Service Accounts by Morto, is to deny them rights to log on through Remote Desktop Services. You can achieve this simply by creating a Group Policy and specifying a group containing all Service Accounts in the ‘Deny log on through Remote Desktop Services’ under &lt;strong&gt;User Rights Assignment&lt;/strong&gt;, under &lt;strong&gt;Local Policies&lt;/strong&gt;, under &lt;strong&gt;Security Settings&lt;/strong&gt; in the &lt;strong&gt;Windows Settings&lt;/strong&gt; of the &lt;strong&gt;Computer Configuration&lt;/strong&gt;.    &lt;br /&gt;&lt;/p&gt;  &lt;h3&gt;&lt;strong&gt;Change the usernames for well-known accounts&lt;/strong&gt;&lt;/h3&gt;  &lt;p&gt;Guessing the password for a built-in Administrator account would be any attackers first attack vector. Changing the name of these accounts is an effective way for you to prevent these attacks through Remote Desktop Services. &lt;/p&gt;  &lt;p&gt;An alternative route would be to disable local administrator accounts and securing the domain administrator with a password no-one knows. Then, you might consider using accounts with administrative privileges for each of your systems administrators. &lt;strong&gt;Admin_SBerkouwer&lt;/strong&gt; or &lt;strong&gt;SBerkouwer9&lt;/strong&gt; would be good ways to denote an account with administrative privileges I can use besides my non-priviledged &lt;strong&gt;SBerkouwer&lt;/strong&gt; account.&lt;/p&gt;  &lt;p&gt;Renaming local administrative accounts can be done through Group Policy. &lt;/p&gt;  &lt;p&gt;I would like to add, this is a security best practice, I would like to see in any network.&lt;/p&gt;  &lt;h3&gt;Apply an environment-wide Password Lockout policy &lt;/h3&gt;  &lt;p&gt;While eradicating weak passwords throughout your enterprise is a good step, this on its own results on a more or less unmanageable network. Remote Desktop Servers might be unresponsive due to logon attempts and security logs might fill so quickly, tracing back to where Morto entered the network becomes impossible due to overwritten logs.&lt;/p&gt;  &lt;p&gt;This is where Password Lockout comes to the rescue. Although Password Lockout policies are not enabled by default in any version of Windows or Active Directory, it is a best practice to detect and defend against guessing and brute forcing passwords. &lt;/p&gt;  &lt;p&gt;The reason why Account Lockout policies are not enabled by default, is because they might hinder your people to log on and burden servicedesk personnel. Good lockout policies, therefore, are key. Setting a permanent account lockout after three invalid attempts will prove to be career suicide. Locking out an account for two minutes after ten invalid attempts would be equally effective against Morto, but would not hinder any normal person much.&lt;/p&gt;  &lt;p&gt;In every Active Directory domain in your network, define an account lockout policy in the &lt;strong&gt;default domain policy&lt;/strong&gt; under &lt;strong&gt;Windows Settings&lt;/strong&gt;, &lt;strong&gt;Security Settings&lt;/strong&gt;, &lt;strong&gt;Account Policies&lt;/strong&gt; and finally under &lt;strong&gt;Lockout Policy&lt;/strong&gt;. Changing these setting in another group policy on the domain level, will lead to the above change in the default domain policy. Changing these settings on another level in Active Directory (for instance on a Site or Organization Unit will not have an effect on user accounts in the domain). &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font color="#0080ff"&gt;&lt;strong&gt;&lt;u&gt;Note:&lt;/u&gt;&lt;/strong&gt;        &lt;br /&gt;&lt;/font&gt;If you want to restrict account lockout policies to users of your Terminal servers only, you’ve set up your environment according to best practices and you’re using at least Windows Server 2008 Domain Controllers, you can also create a Fine-grained Password Policy to the ‘Remote Desktop Users’ group.&lt;/p&gt; &lt;/blockquote&gt;  &lt;h3&gt;Report on invalid logon attempts through auditing&lt;/h3&gt;  &lt;p&gt;After you’ve created password and account lockout policies, you can easily detect invalid logon attempts throughout your enterprise, right from the security logs of your Domain Controllers for domain accounts. For local accounts (for instance the local administrator accounts on the Remote Desktop Servers themselves) the security logs of the servers provide valuable information.&lt;/p&gt;  &lt;p&gt;For Domain accounts you can put the ‘Audit account logon’ policy to good use. After you enable the auditing of failures in the default domain policy under &lt;strong&gt;Computer Configuration&lt;/strong&gt;, &lt;strong&gt;Windows Settings&lt;/strong&gt;, &lt;strong&gt;Security Settings&lt;/strong&gt;, &lt;strong&gt;Local Policies &lt;/strong&gt;and finally in &lt;strong&gt;Audit Policy&lt;/strong&gt;. For &lt;strong&gt;Audit Account Logon Events&lt;/strong&gt; and &lt;strong&gt;Audit Logon Events&lt;/strong&gt;, enable the auditing of both success and failure.&lt;/p&gt;  &lt;p&gt;Now, the events to look for and where to look for them depends on the Operating System versions of your Domain Controllers:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;&lt;strong&gt;Windows 2000 Server-based Domain Controllers       &lt;br /&gt;&lt;/strong&gt;When you’re running Windows 2000 Server-based Domain Controllers, you need to check the Security logs of all your Domain Controllers. &lt;a href="http://support.microsoft.com/kb/824209" target="_blank"&gt;Microsoft KnowledgeBase article 824209&lt;/a&gt; explains how to download and use EventCombMT to ease this pain. EventCombMT has predefined filters to scan for invalid logon attempts and account lockout policies, but if you want to go commando you’ll want to report on the following events:      &lt;br /&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;table cellspacing="0" cellpadding="2"&gt;       &lt;tr&gt;         &lt;td valign="top"&gt;&lt;strong&gt;EventID&lt;/strong&gt;&lt;/td&gt;          &lt;td valign="top"&gt;&lt;strong&gt;Source&lt;/strong&gt;&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;529&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;539&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;644&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;672&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;675&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;676&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;681&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;12294&lt;/td&gt;          &lt;td valign="top"&gt;SAM&lt;/td&gt;       &lt;/tr&gt;     &lt;/table&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;    &lt;li&gt;&lt;strong&gt;Windows Server 2003-based Domain Controllers       &lt;br /&gt;&lt;/strong&gt;In a domain with Windows Server 2003-based Domain Controllers or newer Domain Controllers, you can check the event log of one of the Domain Controllers, since the security events surrounding invalid logon attempts and account lockouts get replicated between all Domain Controllers. You’ll want to report on the following events:      &lt;br /&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;table cellspacing="0" cellpadding="2"&gt;       &lt;tr&gt;         &lt;td valign="top"&gt;&lt;strong&gt;EventID&lt;/strong&gt;&lt;/td&gt;          &lt;td valign="top"&gt;&lt;strong&gt;Source&lt;/strong&gt;&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;529&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;539&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;644&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;672&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;675&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;676&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;681&lt;/td&gt;          &lt;td valign="top"&gt;Security&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;12294&lt;/td&gt;          &lt;td valign="top"&gt;SAM&lt;/td&gt;       &lt;/tr&gt;     &lt;/table&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;    &lt;li&gt;&lt;strong&gt;Windows Server 2008 and Windows Server 2008 R2-based Domain Controllers       &lt;br /&gt;&lt;/strong&gt;In Windows Server 2008, new events were created with the new auditing policies. You’ll want to report on the following events:      &lt;br /&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;table cellspacing="0" cellpadding="2"&gt;       &lt;tr&gt;         &lt;td valign="top"&gt;&lt;strong&gt;EventID&lt;/strong&gt;&lt;/td&gt;          &lt;td valign="top"&gt;&lt;strong&gt;Source&lt;/strong&gt;&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;4625&lt;/td&gt;          &lt;td valign="top"&gt;Microsoft-Windows-Security-Auditing&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;4776&lt;/td&gt;          &lt;td valign="top"&gt;Microsoft-Windows-Security-Auditing&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;4777&lt;/td&gt;          &lt;td valign="top"&gt;Microsoft-Windows-Security-Auditing&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top"&gt;12294&lt;/td&gt;          &lt;td valign="top"&gt;Directory-Services-SAM&lt;/td&gt;       &lt;/tr&gt;     &lt;/table&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/ol&gt;  &lt;p&gt;For your Remote Desktop Hosts, it’s also important to scavenge the security logs. Using Group Policy from within Active Directory, make sure to audit for logon events and also start looking for events 529, 539 and 12294. These would indicate username and/or password guessing. &lt;/p&gt;  &lt;h3&gt;Limit the reach of your Remote Desktop availability &lt;/h3&gt;  &lt;p&gt;I’ve seen virtual local area networks (VLANs) being used more and more over the past years. Now, I see companies defining VLANs for servers, printers and desktops. VLANs for the desktops of systems administrators is not a very common practice yet.Through VLANs, access can be restricted to critical servers. For instance, using VLANs for critical servers and administrative personnel, you could limit TCP 3389 to these servers to administrators only.&lt;/p&gt;  &lt;p&gt;If you’re not using VLANs, you can still achieve the same goal, through the use of the Windows Firewall and DHCP reservations. &lt;/p&gt;  &lt;p&gt;DHCP reservations allow you to assign IP addresses to machines with specific MAC addresses. These addresses are Network Interface Card (NIC)-specific. Placing the desktops (and laptops) of systems administrators in a specific range of IP addresses, allows for Windows Firewall rules on other machines. (whether they’re servers or workstations). You can then limit access to Remote Desktop Services to IP adresses in the 192.168.1.x range, through the following command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;netsh advfirewall firewall set rule name=&amp;quot;Remote Desktop (TCP-in)&amp;quot;&amp;#160; &lt;br /&gt;new remoteip=192.168.1.1-192.168.1.254&amp;#160; &lt;br /&gt;&lt;/strong&gt;      &lt;br /&gt;&lt;/p&gt; &lt;/blockquote&gt; &lt;strong&gt;&lt;/strong&gt;  &lt;p&gt;Alternatively you can use &lt;strong&gt;remoteip=192.168.1.0/24&lt;/strong&gt; to specify these computers. &lt;/p&gt;  &lt;p&gt;If you’re using Remote Desktop on a webserver and you, as a systems administrator, manage it from a slew of IP addresses, limiting the reach of Remote Desktop Services through remote IPs is not really a good solution. In that case, securing Remote Desktop using IPSec, might be the way to go. &lt;a href="http://support.microsoft.com/kb/315055" target="_blank"&gt;Microsoft KnowledgeBase article 315055&lt;/a&gt; explains it. &lt;/p&gt;  &lt;p&gt;Alternatively, when your webserver already listens to IPv6 traffic, you might choose to enable the Remote Desktop Protocol to aNetwork Interface Card (NIC) assigned with an IPv6 address only. Within the Terminal Services Configuration snap-in (tsconfig.msc) on the &lt;strong&gt;Network Adapter&lt;/strong&gt; tab of the RDP-Tcp properties you can select the Network Interface card from the list. Morto doesn’t scan for RDP on IPv6 addresses, yet.&lt;/p&gt;  &lt;h3&gt;Apply a centrally managed anti-malware solution&lt;/h3&gt;  &lt;p&gt;Many anti-malware vendors have added signatures for Morto.A and will add signatures for future versions of Morto when they get spotted in the wild. Even if the measures above seem inadequate or inappropriate to your situation, you might still be safe from most of the harm the Morto.A worm does, since the payload gets detected and removed when it first hits your environment. (most likely a managed desktop or laptop). An up to date anti-malware solution will prevent Morto.A from spreading and at the same time inform you of any (detected and removed) infections.&lt;/p&gt;  &lt;h3&gt;Apply a centrally managed Microsoft update solution&lt;/h3&gt;  &lt;p&gt;Since Morto.A uses an exploit to wreak havoc on your machines, it is sensible to patch the servers with critical updates fast. Fast, in this context, might mean hours, but in the case of a fully automated testbed for Microsoft updates, might also mean weeks. The rule of thumb here is to be quicker getting critical updates on your systems, than attackers are exploiting them.&lt;/p&gt;  &lt;p&gt;Windows Server Update Services (WSUS) can be used free of charge, when you’re already using Windows Server. For more control or tested updates, Microsoft System Center Configuration Manager or Novell Patch Manager can be used. Although these two solutions cost a significant amount of money per managed desktop/laptop, they add significant benefits.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Concluding&lt;/h1&gt;  &lt;p&gt;To effectively defend against Win32/Morto.A, perform the following actions:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Apply a stringent and complete authentication policy &lt;/li&gt;    &lt;li&gt;Deny Service Accounts to log on through Remote Desktop&lt;/li&gt;    &lt;li&gt;Changing the usernames for well-known accounts &lt;/li&gt;    &lt;li&gt;Apply an environment-wide Password Lockout policy &lt;/li&gt;    &lt;li&gt;Report on invalid logon attempts through auditing&lt;/li&gt;    &lt;li&gt;Limit the reach of your Remote Desktop availability &lt;/li&gt;    &lt;li&gt;Apply a centrally managed anti-malware solution&lt;/li&gt;    &lt;li&gt;Apply a centrally managed Microsoft update solution&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;This will provide a layered defense and adequate detection mechanisms. Don’t worry if you can’t perform all the above actions, you’ll be pretty safe given the circumstances.&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=5949" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/System+Administration/default.aspx">System Administration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server/default.aspx">Microsoft Windows Server</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Vista/default.aspx">Microsoft Windows Vista</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Security+Updates/default.aspx">Security Updates</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+7/default.aspx">Microsoft Windows 7</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>Preventing OUs and Containers from Accidental Deletion</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/07/13/preventing-ous-and-containers-from-accidental-deletion.aspx</link><pubDate>Wed, 13 Jul 2011 09:41:41 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:5877</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/5877.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=5877</wfw:commentRss><description>&lt;p&gt;Those of you running Domain Controllers with full installations of Windows Server 2008 R2 or are managing Windows Server 2008 R2-based Domain Controllers using the Remote Server Administration Tools (RSAT) on Windows 7, might have seen the following configuration warning in the Active Directory Best Practice Analyzer (AD BPA):&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:block;float:none;border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto;padding-top:0px;" title="Warning All OUs in this domain should be protected from accidental deletion" border="0" alt="Warning All OUs in this domain should be protected from accidental deletion" src="http://blogs.dirteam.com/blogs/sanderberkouwer/ADBPAOUPrevent_31B2B37A.gif" width="430" height="500" /&gt;&lt;/p&gt;  &lt;h3&gt;About the Protect from Accidental Deletion functionality&lt;/h3&gt;  &lt;p&gt;In Active Directory, Organizational Units can be protected from accidental deletion (reads: using the del key in the wrong place at the wrong time). This way these objects cannot be deleted, unless the protection is removed. This Active Directory feature was first introduced in Windows Server 2008.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Organizational Units protected by default&lt;/h2&gt;  &lt;p&gt;Basically, according to the Microsoft best practices, All OUs in an Active Directory domain should be protected from accidental deletion. Unfortunately, however, after a clean install or an upgrade not all Organizational Units are protected:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Default OUs and containers        &lt;br /&gt;&lt;/strong&gt;The default Organizational Units and containers are not protected by default:       &lt;ul&gt;       &lt;li&gt;the Builtin container &lt;/li&gt;        &lt;li&gt;the Computers container &lt;/li&gt;        &lt;li&gt;the Domain Controllers Organizational Unit &lt;/li&gt;        &lt;li&gt;the ForeignSecurityPrincipals container &lt;/li&gt;        &lt;li&gt;the LostandFound container &lt;/li&gt;        &lt;li&gt;the Managed Service Accounts container &lt;/li&gt;        &lt;li&gt;the Program Data container and its underlying containers &lt;/li&gt;        &lt;li&gt;the System container and its underlying containers &lt;/li&gt;        &lt;li&gt;the Users container &lt;/li&gt;        &lt;li&gt;the NTDS Quotas container          &lt;br /&gt;&lt;strong&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/strong&gt;&lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Legacy OUs and containers&lt;/strong&gt;       &lt;br /&gt;Only Organizational Units and Containers that were initially created using the Windows Server 2008, Windows Server 2008 R2, Windows Vista or Windows 7 Active Directory Users and Computers, Active Directory Administrative Center MMC Snap-ins&amp;#160; or through the PowerShell Active Directory module are protected by default. (the option to Protect from Accidental Deletion is on by default in the dialog screen for creating an Organizational Unit)      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/li&gt; &lt;/ul&gt;  &lt;h2&gt;Protecting Organizational Units&lt;/h2&gt;  &lt;p&gt;It is wise to protect all Organizational Units from accidental deletion. To search for unprotected Organizational Units, use the following two PowerShell commands:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Import-Module ActiveDirectory        &lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Get-ADOrganizationalUnit -filter {name -like &amp;quot;*&amp;quot;} -Properties ProtectedFromAccidentalDeletion | format-table Name,ProtectedFromAccidentalDeletion&lt;/strong&gt;&lt;/p&gt;     &lt;/blockquote&gt;  &lt;p&gt;These commands will produce a table with two columns. The first column lists the names of the Organizational Units in the Active Directory environment. The second column uses true and false as answers to whether the Organization Unit is protected from accidental deletion or not.&lt;/p&gt;  &lt;p&gt;In a clean Active Directory environment, typically, the Domain Controllers Organizational Unit would need the &lt;strong&gt;Protect object from accidental deletion&lt;/strong&gt; property set to true to adhere to the Microsoft Best Practices. After you enable the Advanced Features from the View menu in Active Directory Users and Computers (dsa.msc), you can clearly see this on the Object tab of the OU:&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:block;float:none;border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto;padding-top:0px;" title="OUObjectProperties" border="0" alt="OUObjectProperties" src="http://blogs.dirteam.com/blogs/sanderberkouwer/OUObjectProperties_0A786A45.gif" width="404" height="448" /&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Under the hood, what happens is:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;the Delete Access Control Entries (ACEs) will be denied on the object itself &lt;/li&gt;    &lt;li&gt;the Delete Child Access Control Entries (ACEs) will be denied on the parent object &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;To protect the Domain Controllers Organizational Unit (and any other unprotected Organizational Units), use the following two PowerShell commands:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;Import-Module ActiveDirectory&lt;/strong&gt;&lt;/p&gt;    &lt;p&gt;&lt;strong&gt;Get-ADOrganizationalUnit -filter {name -like &amp;quot;*&amp;quot;} -Properties ProtectedFromAccidentalDeletion | where {$_.ProtectedFromAccidentalDeletion -eq $false} | Set-ADOrganizationalUnit -ProtectedFromAccidentalDeletion $true&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Protecting containers&lt;/h2&gt;  &lt;p&gt;The Active Directory Best Practices Analyzer only checks the accidental deletion prevention on Organizational Units in an Active Directory environment, while the default containers might also contain important Active Directory objects. &lt;/p&gt;  &lt;p&gt;Not to worry though, because accidentally deleting containers won’t a common occurrence:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;In Active Directory Users and Computers and the Active Directory Administrative Console, you cannot create or delete containers. Also, pressing the Del key with a container selected has no effect. The commands are simply not present. &lt;/li&gt;    &lt;li&gt;Although, in ADSI Edit (and other more direct Active Directory manipulation tools) the option to delete containers is more than present, using this option results in an error: &lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="Operation failed Error Code 0x20ce Problem 5003 (WILL_NOT_PERFORM)" border="0" alt="Operation failed Error Code 0x20ce Problem 5003 (WILL_NOT_PERFORM)" src="http://blogs.dirteam.com/blogs/sanderberkouwer/UnwillingToDelete_31468085.gif" width="369" height="178" /&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This is, in my opinion, the reason why the Active Directory Best Practices Analyzer doesn’t need to check the Protect from Accidental Deletion property on Active Directory containers and why, when checking with the Advanced Features turned on in Active Directory Users and Computers, these objects do not have the Protect from Accidental Deletion box selected. &lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Concluding&lt;/h2&gt;  &lt;p&gt;The Protect Organizational Units (OUs) from Accidental Deletion feature is a valuable addition to Active Directory. You will be notified through the Active Directory Best Practices Analyzer, when an Organizational Unit (OU) does not have this property set to true. &lt;/p&gt;  &lt;p&gt;However, you will not receive a notice when containers are unprotected. The Active Directory Best Practices Analyzer does not check this. You don’t need to protect this kind of object, because other means are in place to keep you from (accidentally) deleting them.&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=5877" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>How to add a DSRM startup option in Windows Server 2008 and Windows Server 2008 R2</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2011/07/04/how-to-add-a-dsrm-startup-option-in-windows-server-2008-and-windows-server-2008-r2.aspx</link><pubDate>Mon, 04 Jul 2011 12:03:18 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:5855</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/5855.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=5855</wfw:commentRss><description>&lt;p&gt;Since Windows Server 2008, Microsoft no longer offers the ability to restart a Domain Controller in Directory Services Restore Mode (DSRM) from the default F8 boot menu.&lt;/p&gt;  &lt;h3&gt;About Directory Services Restore Mode&lt;/h3&gt;  &lt;p&gt;For Windows Server-based Domain Controllers, a special startup mode exists, where the Active Directory database isn’t loaded. This startup mode is called the Directory Services Restore Mode (DRSM). After logging in with the DSRM account, an admin can use this mode to troubleshoot Active Directory issues. The DSRM account does not live in Active Directory and its password is set on each Domain Controller. The password may, therefore, not be identical on all Domain Controller in the forest.&lt;/p&gt;  &lt;p&gt;In Windows Server 2008 and Windows Server 2008 R2, several enhancements were made that affect the Directory Services Restore Mode:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;strong&gt;Restartable Active Directory        &lt;br /&gt;&lt;/strong&gt;Restartable Active Directory eliminates many of the reason to restart a Domain Controller in Directory Services Restore Mode (DSRM), with its capabilities to stop and start the &lt;strong&gt;Active Directory Domain Services&lt;/strong&gt;. Reasons include offline defragmentation, However, restoring a previously made (system state) backup can only be performed within the Directory Services Restore Mode.       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;DSRM Admin Logon Behavior&lt;/strong&gt;       &lt;br /&gt;When the Active Directory is stopped (through Restartable Active Directory) or not loaded (in Directory Services Restore Mode) you can use the DSRM password and Domain credentials to log in on the Domain Controller. The second option is only when other operational Domain Controllers exist in the domain. This behavior can be modified using the &lt;strong&gt;DSRMAdminLogonBehavior&lt;/strong&gt; registry key, as described &lt;a href="http://technet.microsoft.com/en-us/library/cc732714(WS.10).aspx#BKMK_Mod" target="_blank"&gt;here&lt;/a&gt;.&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Active Directory Recycle Bin&lt;/strong&gt;      &lt;br /&gt;Directory Services Restore Mode is needed to restore objects in Active Directory from backup. The Active Directory Recycle Bin option in an all-Windows Server 2008 R2 forest, alleviates the need to use backups with built-in restore functionality.&amp;#160; &lt;br /&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;strong&gt;Password syncing for the DSRM account       &lt;br /&gt;&lt;/strong&gt;A feature is available for Windows Server 2008 that lets you synchronize the DSRM Administrator password with a domain user account. You can read more on this in &lt;a href="http://support.microsoft.com/kb/961320" target="_blank"&gt;Microsoft KnowledgeBase article 961320&lt;/a&gt;.&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;Default behavior in Windows Server 2008&lt;/h2&gt;  &lt;p&gt;According to &lt;a href="http://technet.microsoft.com/en-us/library/cc816897(WS.10).aspx" target="_blank"&gt;this TechNet page&lt;/a&gt;, the procedure to access the Directory Services Restore Mode in Windows Server 2008 and Windows Server 2008 R2 is to either:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Use the System Configuration utility (&lt;strong&gt;msconfig.exe&lt;/strong&gt;) and on the Boot tab select Sa&lt;u&gt;f&lt;/u&gt;e Boot and specify the Active Directory re&lt;u&gt;p&lt;/u&gt;air option. Then restart. &lt;/li&gt; &lt;/ul&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/MSConfigADRepair_4C845142.gif" target="_blank"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="System Configuration utility with DSRM selected (click for larger screenshot)" border="0" alt="System Configuration utility with DSRM selected (click for larger screenshot)" src="http://blogs.dirteam.com/blogs/sanderberkouwer/MSConfigADRepair_thumb_13A9F775.gif" width="480" height="316" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;ul&gt;   &lt;li&gt;Use the commandline: &lt;strong&gt;bcdedit /set safeboot dsrepair&lt;/strong&gt; and restart. When done in Directory Services Restore Mode, type &lt;strong&gt;bcdedit /deletevalue safeboot&lt;/strong&gt; and restart normally again. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;When you’re deep in an undisclosed brown substance, however, these options are at least time consuming to perform. You can use the commandline when you choose to repair the Windows installation, but for this you’ll need to start from the Windows Server DVD, which might of might not be within reach, scratched or left in direct sunlight…&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Adding the DSRM startup option&lt;/h2&gt;  &lt;p&gt;So, why not add the Directory Services Restore Mode startup option to the F8 boot menu as a default step after you’ve created a new Domain Controller? When you create a Domain Controller, normally, you’ll find some time to check its configuration, in contrast to the situation described earlier.&lt;/p&gt;  &lt;p&gt;To add a Directory Services Restore Mode startup option to the Boot Configuration Database (BCD), perform the following commands:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;bcdedit /copy {current} /d &amp;quot;Directory Services Restore Mode&amp;quot;&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;This command copies to current boot option (&amp;quot;Startup Normally&amp;quot;) to a new startup option called &amp;quot;Directory Services Restore Mode&amp;quot;. (If you want to use a different name, go ahead.)&lt;/p&gt;  &lt;p&gt;Use the GUID from the above command, including the brackets) in the following command:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;bcdedit /set &lt;font color="#a5a5a5"&gt;{GUID}&lt;/font&gt; safeboot dsrepair&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;You’ve now added the startup option to the menu. If you want to make the Boot Menu visible by default every time the server (re)boots (instead of having to press F8), perform the following (optional) command, where you specify the seconds to display the menu:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;bcdedit /timeout 5&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;In the example above, the menu gets displayed for five seconds. The result is a screen, every time you start or restart the Domain Controller, that will look something like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/WindowsBootManagerDSRM_133DC480.gif" target="_blank"&gt;&lt;img style="background-image:none;border-right-width:0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="Windows Boot Manager with DSRM option available (click for larger screenshot)" border="0" alt="Windows Boot Manager with DSRM option available (click for larger screenshot)" src="http://blogs.dirteam.com/blogs/sanderberkouwer/WindowsBootManagerDSRM_thumb_79D5C145.gif" width="512" height="384" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Concluding&lt;/h2&gt;  &lt;p&gt;I recommend every Active Directory administrator to perform the steps above to create a Directory Services Restore Mode (DSRM) startup entry. Whether you also specify a time-out by default is a choice, that depends on experience, your level of expertise, and your level of confidence.&lt;/p&gt;  &lt;h3&gt;Other DirTeam posts on this topic&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/jorge/archive/2010/06/15/managing-the-dsrm-administrator-account.aspx"&gt;Managing The DSRM Administrator Account&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/jorge/archive/2010/06/13/logging-on-with-the-dsrm-administrator-account.aspx"&gt;Logging On With The DSRM Administrator Account&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/jorge/archive/2007/09/09/is-your-authoritative-restore-being-undone.aspx"&gt;Is your Authoritative Restore being undone?&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/tomek/archive/2009/03/04/and-you-will-keep-your-password-updated.aspx"&gt;And you will keep your password updated …&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/jorge/archive/2006/03/08/597.aspx"&gt;Backup and restore of Active Directory&lt;/a&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h3&gt;Further reading&lt;/h3&gt;  &lt;p&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc816897(WS.10).aspx" target="_blank"&gt;Restart the Domain Controller in Directory Services Restore Mode Locally&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc794729(WS.10).aspx" target="_blank"&gt;Restart the Domain Controller in Directory Services Restore Mode Remotely&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/cc732714(WS.10).aspx" target="_blank"&gt;Restartable AD DS Step-by-Step Guide&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://policelli.com/blog/archive/2009/03/25/back-to-the-basics-securing-the-directory-services-restore-mode-account/"&gt;Securing the Directory Services Restore Mode Account&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://msmvps.com/blogs/sbsdiva/archive/2011/06/21/what-username-and-password-do-i-need-to-use-for-directory-services-restore-mode-dsrm-in-sbs-2011.aspx" target="_blank"&gt;What Username and Password Do I Need to Use for Directory Services Restore Mode&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://colinoutloud.blogspot.com/2011/05/directory-services-restore-to-virtual.html" target="_blank"&gt;Directory Services Restore to Virtual from Physical&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=5855" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Migration+_2600_amp_3B00_+Integration/default.aspx">Migration &amp;amp; Integration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>Active Directory Feature Requirements</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/12/06/active-directory-feature-requirements.aspx</link><pubDate>Mon, 06 Dec 2010 10:12:35 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:5481</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/5481.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=5481</wfw:commentRss><description>&lt;p&gt;Microsoft has included numerous features in Active Directory the last couple of years. Also, more and more technologies in products like Exchange Server, SharePoint Server and the Windows client (Windows Vista, Windows 7) have an Active Directory opt-in to store information in Active Directory.&lt;/p&gt;  &lt;p&gt;All this bountiful integration, however, comes with a price. The price in the case of Active Directory comes in three guises:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Operating System (OS) on the Active Directory Domain Controllers (DCs) &lt;/li&gt;    &lt;li&gt;Active Directory Domain Functional Level &lt;/li&gt;    &lt;li&gt;Active Directory Forest Functional Level &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The table below shows the dependencies Active Directory features, like Group Policy Preferences, the Active Directory Best Practices Analyzer and Read-only Domain Controllers, and Active Directory opt-in technologies, like BitLocker Recovery Key Storage and DirectAccess, have in regards to the list above:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;Red&lt;/font&gt;&lt;/strong&gt; Not Available, &lt;strong&gt;&lt;font color="#ffc000"&gt;Orange&lt;/font&gt;&lt;/strong&gt; Required Set, &lt;font color="#008a00"&gt;&lt;strong&gt;Green&lt;/strong&gt;&lt;/font&gt; Available, &lt;strong&gt;&lt;font color="#a5a5a5"&gt;Grey&lt;/font&gt;&lt;/strong&gt; Depends&lt;/p&gt;  &lt;p&gt;&lt;img style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;float:left;border-top:0px;border-right:0px;padding-top:0px;" title="FeatureTable" border="0" alt="FeatureTable" align="left" src="http://blogs.dirteam.com/blogs/sanderberkouwer/FeatureTable_209AC4C4.png" width="522" height="925" /&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;table cellspacing="0" cellpadding="2"&gt;     &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;1&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;This feature requires the Group Policy Preferences Client Side Extensions on Windows clients. When no Windows Server 2008-based Domain Controllers are in use, the Group Policy Preferences need to be management from a workstation with at least Windows Vista SP1.( Windows 7 recommended)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;2&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;For Windows Server 2003 and Windows Server 2008-based Domain Controllers the &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=008940c6-0296-4597-be3e-1d24c1cf0dda&amp;amp;displaylang=en" target="_blank"&gt;Active Directory Management Gateway Service&lt;/a&gt; needs to be installed. When no Windows Server 2008 R2-based Domain Controllers are in use, the management features can be accessed from a Windows 7 management workstation.&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;Managed Service Accounts (MSAs) are virtual domain accounts that can be used on Windows 7 and Windows Server 2008 R2 in Active Directory environments running Windows Server 2003 and Windows Server 2008 Functional levels. Domains at the Windows Server 2008 R2 functional level provide native support for both automatic password management and SPN management&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;4&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;In environments with multiple Domain Controllers, this feature requires the Domain Controllers participating in this feature to be installed with at least Windows Server 2008.&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;&lt;sup&gt;5&lt;/sup&gt;&lt;/td&gt;        &lt;td&gt;Enabled by default when an Active Directory domain is first setup using a Windows Server 2008 Domain Controller. Workaround available for Windows Server 2003-based Active Directory environments. (&lt;a href="http://technet.microsoft.com/en-us/library/cc739350(WS.10).aspx" target="_blank"&gt;More info&lt;/a&gt;)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;6&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;Enabled by default when an Active Directory domain is first setup using a Windows Server 2008 Domain Controller with the Windows Server 2008 Domain Functional Level. Requires a Sysvol FRS to DFS-R migration when migrating from a Windows Server 2003 environment.&amp;#160; (&lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=DF8E5E84-C6C6-4CEF-9DAB-304C92299804&amp;amp;amp%3Bdisplaylang=en" target="_blank"&gt;More info&lt;/a&gt;)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;7&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;Requires the BitLockerTPMSchemaExtension.ldf schema extension on Domain Controllers running Windows Server 2003. Also, all Domain Controllers need to be running at least Windows Server 2003 with ServicePack 1. (&lt;a href="http://technet.microsoft.com/en-us/library/cc766015(WS.10).aspx" target="_blank"&gt;More info&lt;/a&gt;)&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td&gt;         &lt;p&gt;&lt;sup&gt;8&lt;/sup&gt;&lt;/p&gt;       &lt;/td&gt;        &lt;td&gt;Requires at least one domain controller and DNS server that is running Windows Server 2008 SP2+ or Windows Server 2008 R2. When UAG is used, DirectAccess can be deployed with DNS servers and domain controllers that are running Windows Server 2003 when NAT64 functionality is enabled.&lt;/td&gt;     &lt;/tr&gt;   &lt;/table&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=5481" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/System+Administration/default.aspx">System Administration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server/default.aspx">Microsoft Windows Server</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Vista/default.aspx">Microsoft Windows Vista</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Migration+_2600_amp_3B00_+Integration/default.aspx">Migration &amp;amp; Integration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+7/default.aspx">Microsoft Windows 7</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory+Administrative+Center/default.aspx">Active Directory Administrative Center</category></item><item><title>Active Directory Time Sync (broken by default)</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/09/10/active-directory-time-sync-broken-by-default.aspx</link><pubDate>Fri, 10 Sep 2010 11:03:00 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:5195</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/5195.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=5195</wfw:commentRss><description>&lt;P&gt;&lt;IMG style="BORDER-BOTTOM:0px;BORDER-LEFT:0px;MARGIN:10px;DISPLAY:inline;BORDER-TOP:0px;BORDER-RIGHT:0px;" title=adsnapshot border=0 alt=adsnapshot align=right src="http://blogs.dirteam.com/blogs/sanderberkouwer/adsnapshot_44870D14.gif" width=40 height=40&gt; Active Directory relies on accurate time for a number of reasons. One of this reasons is Kerberos authentication, which by nature can only cope with a difference in time (time skew) of five minutes between the Kerberos server and client. &lt;/P&gt;
&lt;P&gt;Now, don’t get me wrong. I think the time skew limitation and the overall Kerberos implementation as we know it today, is fabulous. Keeping Domain Controllers up to date with a reliable time source (time sync) , however, is not as simple as you might expect it to be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;H1&gt;Time Sync in Active Directory&lt;/H1&gt;
&lt;P&gt;First of all,&amp;nbsp; let’s look at &lt;A href="http://technet.microsoft.com/en-us/library/cc773013(WS.10).aspx" target=_blank&gt;the process of Time Sync in a default Active Directory environment&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Every Active Directory client (whether it’s a Windows client or a Windows Server) will synchronize it’s internal clock (time) with a Domain Controller. &lt;/LI&gt;
&lt;LI&gt;Every Domain Controller synchronizes with the Domain Controller, holding the Primary Domain Controller emulator (PDCe) Flexible Single Master Operations (FSMO) role. &lt;/LI&gt;
&lt;LI&gt;Since the PDCe FSMO role is a domain-wide operations role, a Domain Controller in an Active Directory subdomain will synchronize time with any Domain Controller in the forest root domain. &lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;As you try to visualize this synchronization scheme, a sense of hierarchy should emerge. For this reason many people refer to this scheme as the Time Sync Hierarchy.&lt;/P&gt;
&lt;H2&gt;Challenges&lt;/H2&gt;
&lt;P&gt;The challenge with this hierarchy is the fact that any Domain Controller with a faulty internal clock (hardware) or faulty time synchronization (settings) can mess up a part of your Active Directory clients. &lt;/P&gt;
&lt;P&gt;As described in blog post &lt;A href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/14/active-directory-in-hyper-v-environments-part-2.aspx" target=_blank&gt;Active Directory in Hyper-V environments, Part 2&lt;/A&gt;, Time Sync between virtual Domain Controllers and the virtualization platform (through Integration Components/VMware tools) may attribute to this situation, where the virtualization platform does not synchronize time or synchronizes time with a different time source. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;H1&gt;Broken by default&lt;/H1&gt;
&lt;P&gt;Not only may any Domain Controller on your environment cause time skew in a part of your environment. In the Active Directory Time Sync hierarchy a special place is reserved for the Domain Controller holding the PDCe FSMO role (in the Forest Root Domain).&lt;/P&gt;
&lt;P&gt;Ideally, you want this server to synchronize time with a reliable time source. By default, however, this Domain Controller does not synchronize time, possibly time skewing your entire Active Directory forest.&lt;/P&gt;
&lt;H2&gt;Windows Server 2003&lt;/H2&gt;
&lt;P&gt;When you’re using Windows Server 2003 as your Domain Controller holding the PDCe FSMO role, it will by default synchronize time with &lt;STRONG&gt;time.windows.com&lt;/STRONG&gt;. This host has proven to be less than reliable in the past. Anyone kicking off a manual time synchronization, might remember the screen below:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-RIGHT-WIDTH:0px;DISPLAY:block;FLOAT:none;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;MARGIN-LEFT:auto;BORDER-LEFT-WIDTH:0px;MARGIN-RIGHT:auto;" title=timewindowscom border=0 alt=timewindowscom src="http://blogs.dirteam.com/blogs/sanderberkouwer/timewindowscom_0046A5C8.gif" width=404 height=341&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;H2&gt;Windows Server 2008 &amp;amp; 2008 R2&lt;/H2&gt;
&lt;P&gt;Microsoft has decided to no longer synchronize time with a pre-defined time source from Windows Server 2008 onward. When you run the Active Directory Best Practices Analyzer, as described in blog post &lt;A href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/07/05/server-manager-in-windows-server-2008-r2-part-3.aspx" target=_blank&gt;Server Manager in Windows Server 2008 R2, Part 3&lt;/A&gt;, you will receive an error on this default configuration, urging you to correct this situation:&lt;/P&gt;
&lt;P&gt;&lt;IMG style="BORDER-RIGHT-WIDTH:0px;DISPLAY:block;FLOAT:none;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;MARGIN-LEFT:auto;BORDER-LEFT-WIDTH:0px;MARGIN-RIGHT:auto;" title=BPAResult_5CADE5E4[1] border=0 alt=BPAResult_5CADE5E4[1] src="http://blogs.dirteam.com/blogs/sanderberkouwer/BPAResult_5CADE5E41_2B1F09DA.png" width=438 height=546&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;H1&gt;Resolution&lt;/H1&gt;
&lt;P&gt;The resolution to this problem is to make sure:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Disable Time Synchronization between the virtualization platform and any virtual Domain Controller in the Integration Components/VMware tools &lt;/LI&gt;
&lt;LI&gt;Enable Domain Controllers in your Forest Root Domain to communicate with NTP servers on the Internet through your corporate firewall. (UDP 123) &lt;/LI&gt;
&lt;LI&gt;Manually configure the Domain Controller holding the Domain Controller, holding the Primary Domain Controller emulator (PDCe) Flexible Single Master Operations (FSMO) role in the Forest Root Domain with a reliable external time source, 
&lt;UL&gt;
&lt;LI&gt;defining at least two different NTP servers by their Fully Qualified Domain Names (FQDNs) &lt;/LI&gt;
&lt;LI&gt;defining at least two different NTP servers by their IP addresses (to make sure Time Synchronization continues to work when DNS fails) &lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;A viable command line to configure the Domain Controller would be:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;w32tm /config /manualpeerlist: "europe.pool.ntp.org time.nist.gov 192.43.244.18 193.67.79.202"/syncfromflags:manual/reliable:yes/update&lt;/STRONG&gt;&lt;/P&gt;
&lt;H2&gt;Further reading&lt;/H2&gt;
&lt;P&gt;&lt;A href="http://technet.microsoft.com/en-us/library/cc786897(WS.10).aspx" target=_blank&gt;Configure the Windows Time service on the PDC emulator in the Forest Root Domain&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://technet.microsoft.com/en-us/library/dd723673(WS.10).aspx" target=_blank&gt;AD DS: The PDC emulator master in this forest should be configured to correctly synchronize time from a valid time source&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://technet.microsoft.com/en-us/library/cc773013(WS.10).aspx" target=_blank&gt;How the Windows Time Service Works&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&lt;A href="http://support.ntp.org/bin/view/Servers/StratumOneTimeServers" target=_blank&gt;Stratum One Time Servers&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&lt;A href="http://www.windowsnetworking.com/articles_tutorials/Configuring-Windows-Time-Service.html" target=_blank&gt;Configuring the Windows Time Service&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&lt;A href="http://tigermatt.wordpress.com/2009/08/01/windows-time-for-active-directory/"&gt;Configuring Windows Time for Active Directory&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://articles.techrepublic.com.com/5100-10878_11-6040425.html" target=_blank&gt;Synchronize time throughout your entire Windows network&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://support.microsoft.com/kb/816042/en-us" target=_blank&gt;How to configure an authoritative time server in Windows Server&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://windows-scripting.co.cc/windows-2003/set-authoritative-time-server-windows-2003-active-directory-network" target=_blank&gt;Set Up an Authoritative Time Server in a Windows 2003 Active Directory Network&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://mikefrobbins.com/2010/05/17/active-directory-and-server-time-synchronization-problems-with-hyper-v/" target=_blank&gt;Active Directory Time Synchronization Problems with Hyper-V&lt;/A&gt;&amp;nbsp; &lt;BR&gt;&lt;A href="http://www.sole.dk/post/how-to-configure-your-virtual-domain-controllers-and-avoid-simple-mistakes-with-resulting-big-problems/?p=387"&gt;How to configure your virtual Domain Controllers and avoid simple mistakes with resulting big problems&lt;/A&gt;&lt;/P&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=5195" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/System+Administration/default.aspx">System Administration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server/default.aspx">Microsoft Windows Server</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Best+Practices/default.aspx">Best Practices</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>Considerations when upgrading your Active Directory to Windows Server 2008 and 2008 R2</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/05/10/considerations-when-upgrading-your-active-directory-to-windows-server-2008-and-2008-r2.aspx</link><pubDate>Mon, 10 May 2010 00:15:49 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:4746</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/4746.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=4746</wfw:commentRss><description>&lt;p&gt;While upgrading your Active Directory Domain Controllers, Domain Functional Level(s) and Forest Functional Level to Windows Server 2008 and Windows Server 2008 R2 &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/11/14/an-early-look-at-new-active-directory-features.aspx"&gt;offer additional functionality compared to previous versions&lt;/a&gt;, also a couple of caveats exist, that I think you should be aware of.&lt;/p&gt;  &lt;p&gt;In this blogpost: &lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a&gt;NT 4.0 Compatible Encryption&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a&gt;Going 64 (bit)&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a&gt;Getting acquainted with the Command-line&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a&gt;Limited ways to migrate to Windows Server 2008 R2&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a&gt;Deploying Server Core Domain Controllers&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a&gt;Virtualizing Domain Controllers&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt; &lt;a name="considernt4compat"&gt;   &lt;h2&gt;NT 4.0 Compatible Encryption&lt;/h2&gt; &lt;/a&gt;  &lt;p&gt;Windows Server 2008 and Windows Server 2008 R2 Domain Controllers have a new more secure default for the security settings named “Allow cryptographic algorithms compatible with Windows NT 4.0”. &lt;/p&gt;  &lt;p&gt;When you promote a server to a Domain Controller, a screen containing this message is displayed, right after the Welcome screen:&lt;/p&gt;  &lt;p&gt;&lt;img style="border-right-width:0px;display:block;float:none;border-top-width:0px;border-bottom-width:0px;margin-left:auto;border-left-width:0px;margin-right:auto;" title="DCPromo Info" border="0" alt="DCPromo Info" src="http://blogs.dirteam.com/blogs/sanderberkouwer/DCPromoInfo_290CF73A.gif" width="519" height="491" /&gt; &lt;/p&gt;  &lt;p&gt;This policy is configured to prevent Windows operating systems and third-party clients from using weak cryptography algorithms to establish NETLOGON security channels to Windows Server 2008-based domain controllers.&lt;/p&gt;  &lt;p&gt;While this does not seem like a big deal, it might be in the light of the Active Directory Migration Tool (ADMT). Without the ability to build a trust between the source and target domain, one cannot migrate objects from a Windows NT4 domain. You never hope to encounter a Windows NT 4.0 environment in a merger, acquisition, or divestiture situation, but one can never be sure…&lt;/p&gt;  &lt;p&gt;Also, you may experience problems in environments merely containing Windows Server 2008 and Windows Server 2008 R2 Domain Controllers when you configure pre-Windows Vista SP1 clients to join the domain though Windows Deployment Services or the Microsoft Deployment Toolkit (MDT). For Windows XP and Windows Server 2003 &lt;a href="http://support.microsoft.com/kb/944043/"&gt;an update is available&lt;/a&gt; to correct this problem.&lt;/p&gt;  &lt;p&gt;Now, of course, not migrating to Windows Server 2008 (R2) is a bit excessive. When you’re running into problems and don’t mind the loosened security settings, you can always (temporarily) turn on the “Allow cryptographic algorithms compatible with Windows NT 4.0” setting on every Windows Server 2008 and Windows Server 2008 R2 you need it. Perform the following steps:&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Log on to a Windows Server 2008-based or Windows Server 2008 R2-based Domain Controller. &lt;/li&gt;    &lt;li&gt;Click Start, click Run, type &lt;strong&gt;gpmc.msc&lt;/strong&gt;, and then click OK. &lt;/li&gt;    &lt;li&gt;In the Group Policy Management console, expand Forest: DomainName, expand DomainName, expand Domain Controllers, right-click Default Domain Controllers Policy, and then click Edit. &lt;/li&gt;    &lt;li&gt;In the Group Policy Management Editor console, expand Computer Configuration, expand Policies, expand Administrative Templates, expand System, click Net Logon, and then double-click Allow cryptography algorithms compatible with Windows NT 4.0. &lt;/li&gt;    &lt;li&gt;In the Properties dialog box, click the &lt;strong&gt;Enabled&lt;/strong&gt; option, and then click OK. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;After this step restart the netlogon service.&lt;/p&gt;  &lt;p&gt;When you want to put the new default security settings into effect, perform the same steps, but click the &lt;strong&gt;Disabled&lt;/strong&gt; option in step 5.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt; &lt;a name="consider64bit"&gt;   &lt;h2&gt;Going 64 (bit)&lt;/h2&gt; &lt;/a&gt;  &lt;p&gt;Windows Server 2008 R2 is only available in 64bit flavors. So, when transitioning from 32bit Domain Controllers to 64bit Domain Controllers, you’re bound to encounter some interesting challenges.&lt;/p&gt;  &lt;p&gt;The first challenge is to prepare your Active Directory environment for Windows Server 2008 or Windows Server 2008 R2. To prepare an Active Directory environment for newer Domain Controllers, you’d run &lt;strong&gt;adprep.exe&lt;/strong&gt; on the Domain Controller running the Primary Domain Controller emulator (PDCe) Flexible Single Master Operations (FSMO) role. &lt;/p&gt;  &lt;p&gt;However, when preparing your 32bit Windows Server 2003 (R2) Active Directory environment for Windows Server 2008 x64-based Domain Controllers, you’d need to run the &lt;strong&gt;adprep.exe&lt;/strong&gt; from the Windows Server 2008 x86 DVD. Luckily, the adprep.exe on the trial DVD will suffice for this purpose.&lt;/p&gt;  &lt;p&gt;Preparing a 32bit Windows Server 2003 (R2) or Windows Server 2008 Active Directory environment for Windows Server 2008 R2 is a different story. You’ll need to run &lt;strong&gt;adprep32.exe&lt;/strong&gt; in this case. It is located on the Windows Server 2008 R2 DVD in the same folder as &lt;strong&gt;adprep.exe&lt;/strong&gt;. (This version of &lt;strong&gt;adprep.exe&lt;/strong&gt; is x64 only.)&lt;/p&gt;  &lt;p&gt;Also, when deploying Windows Server 2008 R2 Domain Controller, you should first check whether all the tools and programs you’re using in the current environment are 64bit- &lt;u&gt;and&lt;/u&gt; Windows Server 2008 R2 ready. This includes anti-malware protection software, backup software, software for managing and responding to Uninterruptible Power Supply events, 3rd party management tools, and monitoring tools.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt; &lt;a name="considercmd"&gt;   &lt;h2&gt;Getting acquainted with the Command-line&lt;/h2&gt; &lt;/a&gt;  &lt;p&gt;When migrating to Windows Server 2008 and Windows Server 2008 R2-based Domain Controllers and their respective Domain and Forest Functional Levels, prepare for some command-line stuff.&lt;/p&gt;  &lt;p&gt;First off, to check for proper replication of the Active Directory preparation you can’t use the graphical &lt;strong&gt;replmon.exe&lt;/strong&gt; tool. This tool is no longer available. Instead, you’ll need to use the command-line &lt;strong&gt;repadmin.exe&lt;/strong&gt; tool.&lt;/p&gt;  &lt;p&gt;Furthermore, most of the more advanced features, available when using Windows Server 2008 and Windows Server 2008 R2-based Domain Controllers and the Windows Server 2008 and Windows Server 2008 R2 Functional Levels, is only available on the command-line. &lt;/p&gt;  &lt;p&gt;For instance, compacting your Active Directory database(s), managing fine-grained password policies, working with Active Directory snapshots, offline domain join, creating IFM media with SYSVOLs, enabling and using the Active Directory recycle bin and managing Managed Service Accounts (MSAs) is only available on the command-line (when using only built-in tools).&lt;/p&gt;  &lt;p&gt;Read the series:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/03/11/active-directory-domain-services-command-fu-part-1.aspx"&gt;Active Directory Domain Services Command Fu, Part 1&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/03/25/active-directory-domain-services-command-fu-part-2.aspx"&gt;Active Directory Domain Services Command Fu, Part 2&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/04/08/active-directory-domain-services-command-fu-part-3.aspx"&gt;Active Directory Domain Services Command Fu, Part 3&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/04/16/active-directory-domain-services-command-fu-part-4.aspx"&gt;Active Directory Domain Services Command Fu, Part 4&lt;/a&gt;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/04/26/active-directory-domain-services-command-fu-part-5.aspx"&gt;Active Directory Domain Services Command Fu, Part 5&lt;/a&gt;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2010/04/27/active-directory-domain-services-command-fu-part-6.aspx"&gt;Active Directory Domain Services Command Fu, Part 6&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt; &lt;a name="limitedmigration"&gt;   &lt;h2&gt;Limited ways to migrate to 2008 R2&lt;/h2&gt; &lt;/a&gt;  &lt;p&gt;While this blogpost was written, no suitable version of the Active Directory Migration Tool (ADMT) existed to restructure Active Directory environments to Windows Server 2008 R2.&lt;/p&gt;  &lt;p&gt;Restructuring is one of three ways to migrate to a next version of Windows Servers as Domain Controllers. In-place upgrading and transitioning are the other two ways. With in-place upgrading a next version of Windows Server is used to upgrade a Domain Controller directly without reinstalling. Transitioning means adding additional Domain Controllers with a new version of Windows Server, side by side to existing Domain Controllers with the purpose of phasing out the old Domain Controllers.&lt;/p&gt;  &lt;p&gt;When you want to restructure your Active Directory to Windows Server 2008 R2 you will either need to wait for the Active Directory Migration Tool (ADMT) version 3.2, or restructure to an Active Directory infrastructure, based upon Windows Server 2008 Domain Controllers and in-place upgrade or transition to Windows Server 2008 R2 Domain Controllers from there.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160; &lt;/p&gt; &lt;a name="considerservercore"&gt;   &lt;h2&gt;Deploying Server Core Domain Controllers&lt;/h2&gt; &lt;/a&gt;  &lt;p&gt;Server Core installations are optimized installations of Windows Server. This installation option was introduced with Windows Server 2008. &lt;/p&gt;  &lt;p&gt;While Server Core Domain Controller are highly optimized, they also pose a problem when you’re mixing Windows Server 2008-based Server Core Domain Controllers, Windows Server 2008 R2-based Server Core Domain Controllers and the new Active Directory Administrative Center. (ADAC)&lt;/p&gt;  &lt;p&gt;The Active Directory Administrative Center (ADAC) uses the Active Directory Web Service to communicate with Active Directory Domain Controllers. This service runs on top of the .Net framework. &lt;/p&gt;  &lt;p&gt;The problem is Windows Server 2008-based Server Core Domain Controllers, don’t support the .Net framework. Therefore, you can’t use the Active Directory Administrative Center to manage these Domain Controllers. Of course, Windows Server 2008 R2-based Domain Controllers will still replicate changes, but your Domain Controllers will not be equal, which leads to a suboptimal management experience (over time).&lt;/p&gt;  &lt;p&gt;Another difference between Server Core installations of Windows Server 2008 and Windows Server 2008 R2, is the different management tools available. Where Windows Server 2008 offers the &lt;strong&gt;ocsetup.exe&lt;/strong&gt; and &lt;strong&gt;oclist.exe&lt;/strong&gt; tools, Windows Server 2008 R2 offers &lt;strong&gt;dism.exe&lt;/strong&gt;, which is more powerful.&amp;#160; &lt;/p&gt;  &lt;p&gt;Read more in: &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/09/24/some-server-core-domain-controllers-heading-for-a-dead-end-street.aspx"&gt;Some Server Core Domain Controllers heading for a dead end street&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt; &lt;a name="considerhyperv"&gt;   &lt;h2&gt;Virtualizing Domain Controllers&lt;/h2&gt; &lt;/a&gt;  &lt;p&gt;Hyper-V is a new server role, introduced in Windows Server 2008. Along with Hyper-V, the Server Virtualization Validation Program (SVVP) came to life. Virtualization was already a hot topic in many enterprises by that time, but the popularity of virtualizing the datacenter rose further.&lt;/p&gt;  &lt;p&gt;While virtualized Domain Controllers (whether they’re Server Core or Full installations) offer significant benefits in terms of flexibility, scalability and disaster recovery, they’re also the heart of the infrastructure and should be deployed wisely. &lt;/p&gt;  &lt;p&gt;Therefore, follow these best practices when virtualizing Domain Controllers using Hyper-V clusters:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Deploy at least two Domain Controllers per domain and keep one physically deployed Domain Controller per domain; &lt;/li&gt;    &lt;li&gt;Apply minimum patchlevels;      &lt;br /&gt;(specific hotfixes exist for Windows 2000 Server and Windows Server 2003) &lt;/li&gt;    &lt;li&gt;Install the Integration components; &lt;/li&gt;    &lt;li&gt;Provide adequate Time Synchronization; &lt;/li&gt;    &lt;li&gt;Never save state or pause a Domain Controller; &lt;/li&gt;    &lt;li&gt;Don't use undo disks, differencing disks or snapshots; &lt;/li&gt;    &lt;li&gt;Backup and restore Domain Controllers the right way; &lt;/li&gt;    &lt;li&gt;Use Fixed-Sized VHDs; &lt;/li&gt;    &lt;li&gt;Use different disks for Active Directory files; &lt;/li&gt;    &lt;li&gt;Use &lt;strong&gt;Sysprep.exe&lt;/strong&gt; instead of &lt;strong&gt;NewSID.exe&lt;/strong&gt;; &lt;/li&gt;    &lt;li&gt;Don’t make your Domain Controllers highly available within Hyper-V;      &lt;br /&gt;(use Hyper-V R2 when you want to make your Domain Controllers highly available) &lt;/li&gt;    &lt;li&gt;Secure your virtual Domain Controllers like you would physical Domain Controllers, but at a minimum use &lt;strong&gt;syskey.exe&lt;/strong&gt; in virtualized Domain Controllers; &lt;/li&gt;    &lt;li&gt;Perform Offline P2V Migrations when virtualizing an existing Domain Controllers; &lt;/li&gt;    &lt;li&gt;Don’t perform storage migrations on live Domain Controllers. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Read the series:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/13/active-directory-in-hyper-v-environments-part-1.aspx"&gt;Active Directory in Hyper-V environments, Part 1&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/14/active-directory-in-hyper-v-environments-part-2.aspx"&gt;Active Directory in Hyper-V environments, Part 2&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/08/15/active-directory-in-hyper-v-environments-part-3.aspx"&gt;Active Directory in Hyper-V environments, Part 3&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/11/21/active-directory-in-hyper-v-environments-part-4.aspx"&gt;Active Directory in Hyper-V environments, Part 4&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/04/21/active-directory-in-hyper-v-environments-part-5.aspx"&gt;Active Directory in Hyper-V environments, Part 5&lt;/a&gt;&amp;#160;&amp;#160; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/10/27/active-directory-in-hyper-v-environments-part-6.aspx"&gt;Active Directory in Hyper-V environments, Part 6&lt;/a&gt;&amp;#160; &lt;/li&gt; &lt;/ul&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=4746" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Migration+_2600_amp_3B00_+Integration/default.aspx">Migration &amp;amp; Integration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>Some Server Core Domain Controllers heading for a dead end street</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/09/24/some-server-core-domain-controllers-heading-for-a-dead-end-street.aspx</link><pubDate>Thu, 24 Sep 2009 12:15:12 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:4197</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/4197.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=4197</wfw:commentRss><description>&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Dead end street ahead" border="0" alt="Dead end street ahead" src="http://blogs.dirteam.com/blogs/sanderberkouwer/Dead_End_Street_2904FDA1.jpg" width="512" height="320" /&gt;   &lt;p&gt;You know, in terms of deploying servers in a smart way, so you can actually utilize them for as long as their economical lifecycle in a supported fashion without a need to reinstall them, I’ve made a stupid decision in advising IT Pros to deploy Server Core Domain Controllers in the last two years.&lt;/p&gt;  &lt;p&gt;The problem, you see, is the product team responsible for Active Directory has made a design choice to leave the old world of RPC behind and to introduce a new way to manage Domain Controllers: using the Active Directory web service. &lt;/p&gt;  &lt;p&gt;Windows Server 2008 &lt;font color="#ff8000"&gt;R2&lt;/font&gt; is &lt;a href="http://technet.microsoft.com/en-us/library/dd391908(WS.10).aspx"&gt;the first Windows Server product featuring this new service&lt;/a&gt;, which besides the server component of the web service, also unlocks the usage of a whole load of other goodies like Active Directory PowerShell cmdlets and the Active Directory Administrative Center (ADAC). (when used from a Windows 7 or Windows Server 2008 &lt;font color="#ff8000"&gt;R2&lt;/font&gt;-based management box)&lt;/p&gt;  &lt;p&gt;While the decision was made a while ago, only now do I realize the impact. Now that Microsoft released the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=008940c6-0296-4597-be3e-1d24c1cf0dda&amp;amp;displayLang=en"&gt;Active Directory Management Gateway Service (Active Directory Web Service for Windows Server 2003 and Windows Server 2008)&lt;/a&gt; and both &lt;a href="http://blogs.dirteam.com/blogs/jorge/archive/2009/06/12/active-directory-gateway-webservice-is-available-for-legacy-oses.aspx"&gt;Jorge&lt;/a&gt; and &lt;a href="http://blogs.dirteam.com/blogs/tomek/archive/2009/09/17/web-press-review.aspx"&gt;Tomasz blogged about it&lt;/a&gt;. This Stand-alone Update Package basically adds the Active Directory Web Services service to Domain Controllers, running:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Windows Server 2003 with Service Pack 2 &lt;/li&gt;    &lt;li&gt;Windows Server 2003 R2 with Service Pack 2 &lt;/li&gt;    &lt;li&gt;Windows Server 2008 &lt;/li&gt;    &lt;li&gt;Windows Server 2008 with Service Pack 2 &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;p&gt;Except there’s one problem: .Net Framework 3.5 with Service Pack 1 (SP1) is required. Whoops! That’s not exactly available on Server Core installations of Windows Server 2008 in a supported fashion. &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;As a consequence Windows Server 2008-based Server Core Domain Controllers can not be used in combination with the Active Directory PowerShell cmdlets and the the Active Directory Administrative Center (ADAC).&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;&lt;u&gt;&lt;font color="#ff8000"&gt;Note:&lt;/font&gt;&lt;/u&gt;&lt;/strong&gt;       &lt;br /&gt;Windows Server 2008 &lt;font color="#ff8000"&gt;R2&lt;/font&gt;-based Server Core Domain Controllers, however, can be managed using the Active Directory PowerShell cmdlets and the Active Directory Administrative Center (ADAC). One of the new features of Server Core installations in Windows Server 2008 &lt;font color="#ff8000"&gt;R2&lt;/font&gt; is the availability of the .Net Framework.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Actually when you try to install the Active Directory Management Gateway Service on a Windows Server 2008-based Server Core Domain Controller a check is performed upon your system. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="Error_SC_ADWGS" border="0" alt="Error_SC_ADWGS" src="http://blogs.dirteam.com/blogs/sanderberkouwer/Error_SC_ADWGS_3EFB4366.jpg" width="512" height="318" /&gt; &lt;/p&gt;  &lt;p&gt;Server Core installations fail the check. The result is an error stating “The update does not apply to your system” as shown above on a x64 &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/06/14/how-to-tell-whether-it-s-a-server-core-box.aspx"&gt;Server Core installation of Windows Server 2008 (OperatingSKU 13)&lt;/a&gt;. This box was setup as a &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/09/23/how-to-tell-whether-it-s-a-server-core-domain-controller.aspx"&gt;Domain Controller and configured with the Primary Domain Controller emulator (PDCe) FSMO role (DomainRole 5)&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Concluding&lt;/h1&gt;  &lt;p&gt;When running an environment with Windows Server 2008-based Server Core Domain Controllers, a requirement to use the Active Directory PowerShell cmdlets or Active Directory Administrative Center (ADAC) implicates the need to reinstall the Windows Server 2008-based Server Core Domain Controllers as Full installations or the need to upgrade the Windows Server 2008-based Server Core Domain Controllers to Windows Server 2008 &lt;font color="#ff8000"&gt;R2&lt;/font&gt;-based Server Core Domain Controllers. &lt;/p&gt;  &lt;h2&gt;Related posts&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/tomek/archive/2009/09/17/web-press-review.aspx"&gt;(Web)Press review&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/jorge/archive/2009/06/12/active-directory-gateway-webservice-is-available-for-legacy-oses.aspx"&gt;Active Directory Gateway WebService is available for ‘legacy’ OSes&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/09/23/how-to-tell-whether-it-s-a-server-core-domain-controller.aspx"&gt;How to tell whether it’s a Server Core Domain Controller&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/06/14/how-to-tell-whether-it-s-a-server-core-box.aspx"&gt;How to tell whether it's a Server Core box&lt;/a&gt;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Further reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=008940c6-0296-4597-be3e-1d24c1cf0dda#tm"&gt;Download Details: Active Directory Management Gateway Service&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://technet.microsoft.com/#BKMK_1"&gt;What does the Active Directory Management Gateway Service do?&lt;/a&gt;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://technet.microsoft.com/en-us/library/dd391908(WS.10).aspx"&gt;What's New in AD DS: Active Directory Web Services&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://support.microsoft.com/kb/969041"&gt;The Active Directory Management Gateway Service is now available&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://feedproxy.google.com/~r/binkdotnu/~3/45B0DXOMNCY/active-directory-management-gateway-service-for-windows-server-2003-and-windows-server-2008.aspx"&gt;Active Directory Management Gateway Service for Windows Server 2003 and 2008&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.msdn.com/adpowershell/archive/2009/09/18/active-directory-management-gateway-service-released-to-web-manage-your-windows-2003-2008-dcs-using-ad-powershell.aspx"&gt;Manage YOUR Windows 2003/2008 DCs USING AD POWERSHELL !&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://policelli.com/blog/?p=431"&gt;The Active Directory Management Gateway Service is now Available for Windows Server 2008 and Windows Server 2003&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://joeelway.spaces.live.com/blog/cns!2095EAC3772C41DB!2799.trak"&gt;Active Directory Management Gateway Service&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a title="Have you successfully installed Active Directory Management Gateway Service on 2008-" href="http://serverfault.com/questions/68489/have-you-successfully-installed-active-directory-management-gateway-service-on-20"&gt;Have you successfully installed Active Directory Management Gateway Service on 2008?&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://theexpertscommunity.com/item/show/blog/1426"&gt;Active Directory Management Gateway Service is RTW&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://windowsitpro.com/article/articleid/102417/q-what-is-active-directory-management-gateway-service-admgs.html"&gt;Q. What is Active Directory Management Gateway Service (ADMGS)?&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://www.shariqsheikh.com/blog/index.php/200907/what-is-active-directory-management-gateway-service-admgs/"&gt;What is Active Directory Management Gateway Service (ADMGS)?&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.oxfordcomputergroup.com/news/blog/active-directory-gateway-webservice-is-available-f-113.php"&gt;Active Directory Gateway WebService is available for ‘legacy’ OSes&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=4197" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/System+Administration/default.aspx">System Administration</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Server+Core/default.aspx">Server Core</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008+R2/default.aspx">Microsoft Windows Server 2008 R2</category></item><item><title>How to tell whether it’s a Server Core Domain Controller</title><link>http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2009/09/23/how-to-tell-whether-it-s-a-server-core-domain-controller.aspx</link><pubDate>Wed, 23 Sep 2009 11:52:51 GMT</pubDate><guid isPermaLink="false">4afa41f1-c118-406e-beda-ba054a9f6c33:4192</guid><dc:creator>Sander Berkouwer</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.dirteam.com/blogs/sanderberkouwer/comments/4192.aspx</comments><wfw:commentRss>http://blogs.dirteam.com/blogs/sanderberkouwer/commentrss.aspx?PostID=4192</wfw:commentRss><description>&lt;p&gt;&lt;img style="border-right-width: 0px; margin: 0px 0px 0px 30px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="DomainController_thumb_450BCD5C[1]" border="0" alt="DomainController_thumb_450BCD5C[1]" align="right" src="http://blogs.dirteam.com/blogs/sanderberkouwer/DomainController_thumb_450BCD5C1_65B83102.jpg" width="60" height="86" /&gt; Server Core installations of Windows Server 2008 can be utilized in a variety of ways. I’ve written about using them as &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/03/22/sc-enario-windows-web-2-0-server-2008.aspx"&gt;Web 2.0 Servers with IIS 7, PHP and MySQL&lt;/a&gt;, as &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/03/23/sc-enario-streaming-media-reverse-proxy.aspx"&gt;Streaming media (reverse) proxies&lt;/a&gt;, as &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/03/24/sc-enario-the-kitchen-cupboard-server.aspx"&gt;branch office servers, loaded with DFS, DNS, DHCP and secured with BitLocker Drive Encryption&lt;/a&gt; and of course using them as &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2007/05/03/installing-server-core-domain-controllers.aspx"&gt;highly-optimized Active Directory Domain Controllers&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;But, how exactly do you tell whether a Server Core box is a Domain Controller?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;The command to check this is actually surprisingly simple:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;strong&gt;&lt;font color="#808080"&gt;wmic.exe ComputerSystem get DomainRole&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;But the output is puzzling, to say the least…&lt;/p&gt;  &lt;p&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="wmicDomainRole" border="0" alt="wmicDomainRole" src="http://blogs.dirteam.com/blogs/sanderberkouwer/wmicDomainRole_6407652E.jpg" width="512" height="216" /&gt; &lt;/p&gt;  &lt;p&gt;In the screenshot above the command returns a numeric value.&lt;/p&gt;  &lt;p&gt;Again, &lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/06/14/how-to-tell-whether-it-s-a-server-core-box.aspx"&gt;just like when you want to find out what edition of Windows Server you’re running&lt;/a&gt;, deciphering the value to something that makes sense to humans is key to get the info.&lt;/p&gt;  &lt;p&gt;The table to use to decipher the DomainRole value can be found on the MSDN page of the ComputerSystem class:&lt;/p&gt;  &lt;table border="1" cellspacing="0" cellpadding="2" width="403"&gt;&lt;tbody&gt;     &lt;tr&gt;       &lt;td valign="top" width="58"&gt;&lt;strong&gt;Value&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="142"&gt;&lt;strong&gt;Hexidecimal value&lt;/strong&gt;&lt;/td&gt;        &lt;td valign="top" width="201"&gt;&lt;strong&gt;DomainRole&lt;/strong&gt;&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="58"&gt;0&lt;/td&gt;        &lt;td valign="top" width="142"&gt;0x0&lt;/td&gt;        &lt;td valign="top" width="201"&gt;Standalone Workstation&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="58"&gt;1&lt;/td&gt;        &lt;td valign="top" width="142"&gt;0x1&lt;/td&gt;        &lt;td valign="top" width="201"&gt;Member Workstation&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="58"&gt;2&lt;/td&gt;        &lt;td valign="top" width="142"&gt;0c2&lt;/td&gt;        &lt;td valign="top" width="201"&gt;Standalone Server&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="58"&gt;3&lt;/td&gt;        &lt;td valign="top" width="142"&gt;0x3&lt;/td&gt;        &lt;td valign="top" width="201"&gt;Member Server&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="58"&gt;4&lt;/td&gt;        &lt;td valign="top" width="142"&gt;0x4&lt;/td&gt;        &lt;td valign="top" width="201"&gt;Backup Domain Controller&lt;/td&gt;     &lt;/tr&gt;      &lt;tr&gt;       &lt;td valign="top" width="58"&gt;5&lt;/td&gt;        &lt;td valign="top" width="142"&gt;0x5&lt;/td&gt;        &lt;td valign="top" width="201"&gt;Primary Domain Controller&lt;/td&gt;     &lt;/tr&gt;   &lt;/tbody&gt;&lt;/table&gt;  &lt;p&gt;In the screenshot above the returned value is 5, which means the Server Core installation is, in fact, a Domain Controller. Not just a Domain Controller though… It’s the Domain Controller holding the Primary Domain Controller emulator (PDCe) Flexible Single Master Operations (FSMO) role.&lt;/p&gt;  &lt;p&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;/p&gt;  &lt;h1&gt;Concluding&lt;/h1&gt;  &lt;p&gt;Using the DomainRole property of the ComputerSystem class is a useful and fast way to check whether a Server Core installation of Windows Server is a Domain Controller, whether it’s domain-joined and whether it holds the PDCe FSMO role.&lt;/p&gt;  &lt;h2&gt;Related Posts&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/06/14/how-to-tell-whether-it-s-a-server-core-box.aspx"&gt;How to tell whether it's a Server Core box&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/03/24/sc-enario-the-kitchen-cupboard-server.aspx"&gt;SC'enario: The Kitchen Cupboard Server&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/03/23/sc-enario-streaming-media-reverse-proxy.aspx"&gt;SC'enario: Streaming Media (reverse) Proxy&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/2008/03/22/sc-enario-windows-web-2-0-server-2008.aspx"&gt;SC'enario: Windows Web 2.0 Server 2008&lt;/a&gt;&amp;#160; &lt;/p&gt;  &lt;h2&gt;Further Reading&lt;/h2&gt;  &lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa394102(VS.85).aspx"&gt;Win32_ComputerSystem Class&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.experts-exchange.com/Software/Server_Software/File_Servers/Active_Directory/Q_23733320.html"&gt;How to Check whether a machine is domain controller or not?&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://www.pcreview.co.uk/forums/thread-1504107.php"&gt;How can I determine if a server is a domain controller?&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WinBatch/WMI+Determining~If~a~Machine~is~a~Domain~Controller.txt"&gt;Determining If a Machine is a Domain Controller&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://windowsitpro.com/article/articleid/84886/jsi-tip-10001-how-can-a-script-determine-if-the-computer-it-is-running-on-is-a-standalone-workstation-member-workstation-standalone-server-member-server-backup-domain-controller-or-primary-domain-controller.html"&gt;How can a script determine if the computer it is running on is a Domain Controller?&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://objectmix.com/dotnet/320115-identifying-read-only-domain-controller-through-wmi.html"&gt;Identifying read only domain controller through WMI : DOTNET&lt;/a&gt;&amp;#160; &lt;br /&gt;&lt;a href="http://bytes.com/topic/c-sharp/answers/838319-determine-primary-domain-controler"&gt;Determine the Primary Domain Controler&lt;/a&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &lt;br /&gt;&lt;a href="http://www.microsoft.com/technet/scriptcenter/resources/qanda/jan06/hey0117.mspx"&gt;Hey, Scripting Guy! How Can I Tell Whether a Logon Script is Running on a Workstation or on a Server?&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.dirteam.com/aggbug.aspx?PostID=4192" width="1" height="1"&gt;</description><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Active+Directory/default.aspx">Active Directory</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Microsoft+Windows+Server+2008/default.aspx">Microsoft Windows Server 2008</category><category domain="http://blogs.dirteam.com/blogs/sanderberkouwer/archive/tags/Server+Core/default.aspx">Server Core</category></item></channel></rss>