{"id":22,"date":"2015-04-20T12:13:50","date_gmt":"2015-04-20T12:13:50","guid":{"rendered":"http:\/\/michaelstoica.com\/?p=22"},"modified":"2015-04-20T12:15:02","modified_gmt":"2015-04-20T12:15:02","slug":"installing-and-configuring-windows-server-2012-domain-controller-with-powershell","status":"publish","type":"post","link":"https:\/\/michaelstoica.com\/site\/installing-and-configuring-windows-server-2012-domain-controller-with-powershell\/","title":{"rendered":"Installing and configuring Windows Server 2012 domain controller with Powershell"},"content":{"rendered":"<p>Active Directory Domain Services role can be installed and configured quite fast with Powershell\u00a0and all the\u00a0following steps can be scripted\u00a0in case you have to install the role on several servers.<\/p>\n<p>I&#8217;ve started by configuring the networking\u00a0settings with <em>New-NetIpAddress<\/em> command after which we can start installing the AD DS role using the command\u00a0<em>\u00a0Add-WindowsFeature -Name ad-domain-services -IncludeManagementTools.<\/em><\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/nic.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-26\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/nic-300x160.jpg\" alt=\"nic\" width=\"300\" height=\"160\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/nic-300x160.jpg 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/nic.jpg 873w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/adds.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-23\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/adds-300x65.jpg\" alt=\"adds\" width=\"300\" height=\"65\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/adds-300x65.jpg 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/adds.jpg 876w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>After the role is installed we start to configure a new domain in a new forest, install the DNS and choose the DomainName and ForestMode with the following command\u00a0<em>Install-ADDSForest -DomainName abc.ro\u00a0-InstallDNS -DomainMode Win2012 -ForestMode Win2012.<\/em><\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/forest.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-25\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/forest-300x44.jpg\" alt=\"forest\" width=\"300\" height=\"44\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/forest-300x44.jpg 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/forest.jpg 877w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>After the command runs successfully we will have a new domain in a new forest up and running.<\/p>\n<p><a href=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/final.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-24\" src=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/final-300x225.png\" alt=\"final\" width=\"300\" height=\"225\" srcset=\"https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/final-300x225.png 300w, https:\/\/michaelstoica.com\/site\/wp-content\/uploads\/2015\/04\/final.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Active Directory Domain Services role can be installed and configured quite fast with Powershell\u00a0and all the\u00a0following steps can be scripted\u00a0in case you have to install&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/michaelstoica.com\/site\/installing-and-configuring-windows-server-2012-domain-controller-with-powershell\/\">Continue reading<span class=\"screen-reader-text\">Installing and configuring Windows Server 2012 domain controller with Powershell<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[14,10,9],"class_list":["post-22","post","type-post","status-publish","format-standard","hentry","category-general","tag-active-directory","tag-powershell","tag-windows-server","entry"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p63Lge-m","_links":{"self":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":1,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":27,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/posts\/22\/revisions\/27"}],"wp:attachment":[{"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michaelstoica.com\/site\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}