In this tutorial, we will learn how to install Active Directory Domain Services using PowerShell cmdlets
Before proceeding to install, we will check the available features to install.
We will use Get-WindowsFeature cmdlet to get the available features to install.
Result will be as below and you can see Active Directory Domain Services is available to install.
Run the below cmdlet to install the Active Directory Domain Services including all the management tools (Need reboot the complete the installation).
Install-WindowsFeature -IncludeManagementTools AD-Domain-Services
To cross verify installation you can run the Get-WindowsFeature once again and check the results, status of Active Directory Domain Services should change to Installed as in below screen shot.
To cross verify installation you can run the Get-WindowsFeature once again and check the results, status of Active Directory Domain Services should change to Installed as in below screen shot.
Post this we need to promote this server as Domain controller to complete the configuration.
As this is a totally new setup we are configuring as First domain controller in new forest as we don't have existing forest.
To do this run the below cmdlets.
Install-ADDSForest
It will ask for few inputs to proceed with, you can see in below pic.
I have given the Domain name and the safemodeadminpassword to proceed and Type "Y" to promote the domain controller.
It will validate the environment, user input and Prerequisites for domain controller operation before proceeding.
Post installation, you can verify the status of the server role by using Net Accounts command, the role will appear as Primary, earlier it was Server as there is no ADDS role installed on this, find the below pic for more info.
And you can find the below administrative tools to manage the Active Directory.
This concludes the tutorial.
Thank you! Happy Learning :)
Comments
Post a Comment