Share via

PowerShell to install the AD DS role

NIKIWE NYALAMBISA 0 Reputation points
2026-02-25T13:28:18.33+00:00

Role Installation: In your sandbox/lab, use PowerShell to install the AD DS role, how do i access powershell

This question is related to the following Learning Module

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Harry Phan 15,915 Reputation points Independent Advisor
    2026-02-26T04:30:29.5366667+00:00

    Hello Nikiwe,

    To access PowerShell in your Windows Server sandbox, you simply need to launch it from the operating system itself. On the server, click Start and type “PowerShell,” then open Windows PowerShell or Windows PowerShell (Admin) if you need elevated rights. You can also press Win + R, type powershell, and hit Enter, which will bring up the console immediately. Once you’re in, you can run the command Install-WindowsFeature -Name AD-Domain-Services to install the AD DS role. After the role is installed, you’ll still need to promote the server to a domain controller, but the installation itself is handled entirely through that PowerShell session.

    Is it helpful? If it is, please hit Accept Answer or give it a thump up! Very appreciate :)

    Harry.

    0 comments No comments

  2. Q&A Assist
    2026-02-25T13:29:12.2233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To access PowerShell in your Windows environment, you can follow these steps:

    1. Using the Start Menu:
      • Click on the Start button or press the Windows key on your keyboard.
      • Type PowerShell in the search bar.
      • Click on Windows PowerShell from the search results.
    2. Using Run Command:
      • Press Windows + R to open the Run dialog.
      • Type powershell and press Enter.
    3. Using Command Prompt:
      • Open Command Prompt by typing cmd in the Start Menu search and pressing Enter.
      • In the Command Prompt window, type powershell and press Enter to switch to PowerShell.

    Once you have PowerShell open, you can proceed to install the Active Directory Domain Services (AD DS) role using the following command:

    Install-WindowsFeature -name AD-Domain-Services -IncludeManagementTools
    

    This command installs the AD DS server role along with the management tools necessary for administration.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.