Some error messages – I have not fully setup the serverĪs the system is being setup you may get some error messages. You can see the progress of the installation in the teal-coloured status bar covering the top half of the screen in the screenshot below. You may receive various warnings, dependant on whether you have static IPs or not. Once you set this password here Windows will finish the AD installation and configuration on your Windows Server based on the input provided. Once you execute this, you will be asked to enter SafeModeAdministratorPassword – this is for the Directory Services Restore Mode (DSRM). If you are using a different version of Windows Server, be sure to change your modes from Win2012R2 to something such as Win2008. The line breaks in my example are just for readability: I will lay this out line per line, to make for easy reading, but when you are passing the parameters, please be sure not to break lines anywhere. This will install the basic features and functions, however, if you want to install a customised setup – which I assume you would want to do – in a proper business environment, I will provide a sample setup for you to follow. To install the Active Directory with the default configuration, execute the following command: So, as stated above, we are installing the first domain in Forest. Installing the First Domain Controller in Forest Uninstall the domain controller from server Verify prerequisites to install read only domain controller Test-ADDSReadOnlyDomainControllAccountCreation Verify prerequisites to install first domain controller in a child or tree domain Verify prerequisites to install additional domain controller in domain ![]() Install first domain controller in new forest Install additional domain controller in domain Install first domain controller in a child or tree domain However, for this article, we are going to use the Install-ADDSForest command. I will provide a list and description so that you can figure out which one best suits your needs. Now, you will need to need to promote your server to a domain controller as per your requirements – there are several commands that you can use to do this. Commands to Promote Server as Domain Controller Again, if you receive any errors, let me know. If the command completed successfully then you will be faced with a blank prompt. I will not provide a screenshot, because there is no visible feedback from this command. You can import this via the following command: The module that we are going to import here is the ADDSDeployment module. We are now going to install some additional modules to make the server run smoother, and also walk you through the process of setting up a new forest to make your active directory work. Now – the installation is technically complete, however, this article is not going to end there. If you happen to come across any errors, then let me know in the comments below and I will do my best to try and help you resolve them. If everything goes well and according to plan, you should end up with the following screen: This command will extract all required binary files and start the installation procedure: Install-windowsfeature AD-Domain-Services You simply have to execute the following command: Once we have figured out the service name and the module name, we now have to go ahead and install it. What you need is highlighted in pink Installing the Active Directory Domain Service The next thing you will want to do is locate the Active Directory Domain Services: Your window should now look something like this: Once the command has completed successfully, you will be presented with all the uninstalled, but available, modules. It depends on the specifications you are running with. This command may take some time to execute, as the server collects the data. 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.
0 Comments
Leave a Reply. |