In order to do this, we first have to execute: In order to install Active Directory from PowerShell, we will need to know the exact module name to look for. Your command line interface should start off as the top image, and end up as the bottom: Once you have logged into the system and are faced with the command line, simply type PowerShell. The first thing you will need to do is open PowerShell. The first question to be asked: why would you want to? A lot of Windows Server installs do not have the GUI included, to reduce overheads, which means you don’t have access to the wizard – the primary reason for this tutorial.
If you run into problems, let me know in the comments below. For the purposes of this article I will be using Microsoft Windows Server 2016 Technical Preview 5, but there is no reason this should not work on previous versions of Server. In today’s article, we are going to discuss setting up Active Directory via PowerShell.