{"id":300,"date":"2014-10-14T20:16:52","date_gmt":"2014-10-14T20:16:52","guid":{"rendered":"https:\/\/www.sharepoint13.org\/?p=300"},"modified":"2014-10-14T20:22:31","modified_gmt":"2014-10-14T20:22:31","slug":"ad-ds-deployment","status":"publish","type":"post","link":"https:\/\/www.sharepoint13.org\/?p=300","title":{"rendered":"AD DS Deployment"},"content":{"rendered":"<p>Yesterdays post covered creation of <a href=\"https:\/\/www.sharepoint13.org\/?p=293\">Azure VM\u2019s<\/a> Today I will continue installing Active Directory on two of them. Some of you AD oldtimers out there have been using dcpromo.exe back in the days to deploy ADDS, today everything is done with Powershell (Yei <img decoding=\"async\" class=\"wlEmoticon wlEmoticon-smile\" style=\"border-top-style: none; border-bottom-style: none; border-right-style: none; border-left-style: none\" alt=\"Smile\" src=\"https:\/\/www.sharepoint13.org\/wp-content\/uploads\/2014\/10\/wlEmoticon-smile1.png\" \/>)<\/p>\n<h2>#1. Enable WinFeature &amp; Management tools<\/h2>\n<p>First of all you install the AD Domain services windows feature and include the management tools, on all domain controllers.   <br \/># Run PowerShell Ise as administrator    <br \/><font size=\"2\" face=\"Calibri\"><em>Install-windowsfeature -name AD-Domain-Services \u2013IncludeManagementTools<\/em><\/font><\/p>\n<h2>#2 Install AD DS Forest<\/h2>\n<p>next is to install the forest and first domain controller. Remember to add Db, Sysvol and Logpath on a separate datadisk.<\/p>\n<p><font size=\"2\" face=\"Calibri\"><em>Install-ADDSForest -DomainName vaerpnazure.com -DatabasePath &quot;F:\\Windows\\NTDS&quot; -SysvolPath &quot;F:\\Windows\\SYSVOL&quot; -LogPath &quot;F:\\Windows\\Logs&quot;<\/em><\/font><\/p>\n<p><a href=\"https:\/\/www.sharepoint13.org\/wp-content\/uploads\/2014\/10\/image1.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" 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=\"image\" src=\"https:\/\/www.sharepoint13.org\/wp-content\/uploads\/2014\/10\/image_thumb1.png\" width=\"469\" height=\"223\" \/><\/a>    <br \/>You will be prompted for a SafeMode admin password.<\/p>\n<h2>#3 Install additional Domain Controllers<\/h2>\n<p>Domain join the additional VM\u2019s planned for DC role, and enable the AD Domain Services features from #1. Then you are ready to run this in PS:   <\/p>\n<p><font size=\"2\" face=\"Calibri\"><em>Install-ADDSDomainController -DomainName vaerpnazure.com -DatabasePath &quot;F:\\Windows\\NTDS&quot; -SysvolPath &quot;F:\\Windows\\SYSVOL&quot; -LogPath &quot;F:\\Windows\\Logs&quot;<\/em><\/font><\/p>\n<h2>#4 Transfer FSMO roles<\/h2>\n<p>Since this is a single forest domain, I will transfer the Infrastructure master role to the second DC., this because the Infrastructure master got nothing to do in a single domain.<\/p>\n<p>First load AD PS lib,   <br \/><font size=\"2\" face=\"Calibri\"><em>ipmo activedirectory<\/em><\/font><\/p>\n<p>To shorten the command line syntax you can use role numbers in place of the role names. The following list details the role number for each of the five FSMO roles.<\/p>\n<p>PDC Emulator \u2013 0    <br \/>RID Master \u2013 1     <br \/>Infrastructure Master \u2013 2     <br \/>Schema Master \u2013 3     <br \/>Domain Naming Master \u2013 4 <\/p>\n<p><font size=\"2\" face=\"Calibri\"><em>Move-ADDirectoryServerOperationMasterRole -Identity \u201cVAERPNAD02\u201d \u2013OperationMasterRole 2<\/em><\/font><\/p>\n<p><font size=\"1\">You can also use this to transfer roles later for version upgrade or force when a DC is broken\/down. To identify the DC\u2019s holding the roles run this two cmdlets in PS:<\/font><\/p>\n<p><font size=\"2\" face=\"Calibri\"><em>Get-ADForest vaaerpnazure.com | Format-Table SchemaMaster,DomainNamingMaster<\/em><\/font><\/p>\n<p><font size=\"2\" face=\"Calibri\"><em>Get-ADDomain varerpnazure.com | format-table PDCEmulator,RIDMaster,InfrastructureMaster<\/em><\/font><\/p>\n<p><font size=\"1\" face=\"Calibri\"><font face=\"Arial\">More info here:<\/font><em><strong> <\/strong><\/em><a title=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh472160.aspx\" href=\"http:\/\/technet.microsoft.com\/en-us\/library\/hh472160.aspx\"><em><strong>http:\/\/technet.microsoft.com\/en-us\/library\/hh472160.aspx<\/strong><\/em><\/a><\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yesterdays post covered creation of Azure VM\u2019s Today I will continue installing Active Directory on two of them. Some of you AD oldtimers out there have been using dcpromo.exe back in the days to deploy<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[34,44,11],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-azure","tag-active-directory","tag-azure","tag-powershell"],"_links":{"self":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300"}],"version-history":[{"count":2,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions"}],"predecessor-version":[{"id":302,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=\/wp\/v2\/posts\/300\/revisions\/302"}],"wp:attachment":[{"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sharepoint13.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}