Skip to content

Add or remove roles and features in Windows Server — by Microsoft Learn

beginnerpageLink only (©)

Official walkthrough for installing and removing server roles and features with the Server Manager wizard or PowerShell, on a local server, a remote server or an offline VHD. It also shows how to export the wizard choices to an XML file so the same roles can be pushed to several servers.

Quick steps

  1. Open Server Manager, then Manage, then Add Roles and Features
  2. Choose role-based or feature-based installation and pick the target server
  3. Select roles and features, then confirm and install
  4. PowerShell alternative: Install-WindowsFeature -Name DNS,DHCP -IncludeManagementTools

Paraphrased from the source. Menus can differ by version, so check the original for full details.

Read the full article on learn.microsoft.com

Source: Add or remove roles and features in Windows Server by Microsoft Learn. Licence: Link only (©).

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

windows serverserver managerrolespowershell

More in Server Basics