Sharing of thoughts and information is what blogging is all about. This way we can learn from each other. Post A Comment!These postings are provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use.
Anthony Bartolo Twitter | LinkedIn
Pierre Roman Twitter | LinkedIn
Following a recent post on CANITPRO.NET entitled Benefits of Deploying Windows Server 2012 R2 Core Installation, I thought it would be a great opportunity to provide insight as to harnessing PowerShell to assist in the day to day activities that could be completed on a core enabled server. This script could prove to be useful when setting up self service scripts for people setting up their own environment. Step 1: Download and install Windows Server 2012 R2
Note: This script can actually be utilized in any of the modes offered by Windows Server 2012 R2.
Step 2: Launch PowerShell from the server you are setting up as your first DC in the new forest then enter the following:
Add-WindowsFeature -name ad-domain-service -IncludeManagementTools
Step 3: Once the process is completed and the role is installed, enter the following command to configure the new forest:
Install-ADDSForest -DomainName "contoso.com" -ForestMode 5 -DomainMode 5
This creates a new Active Directory forest under the Contoso.com domain with forest functional and domain functional mode enable via Server 2012 R2.
Note: The following functional level requirements listed below are available to those that require different modes.
Step 4: The server will now prompt for a safemode password thus creating a Active Directory recovery password.
Step 5: Provide confirmation in regards to installing Active Directory and configure this server as a domain controller by clicking Y on the keyboard.
The server will then reboot once the process is completed.
With the recent upgrade to PowerShell 4.0 available and resources such as the Microsoft Virtual Academy, be sure to fully take advantage of the robustness a core server core installation has to offer.
Great post; very helpful! I need to become more proficient at PowerShell, that's for sure.