How to Add Roles and Features in Windows Server 2022 (Server Manager)
Need to add roles and features in Windows Server, for example to turn on Remote Desktop, a web server or .NET Framework 3.5? In Windows Server 2022 you do it from Server Manager with the Add Roles and Features Wizard. Below are the steps with screenshots from our own Windows Server 2022 test server, where we used the wizard to add the Remote Desktop Services role, plus the PowerShell commands Microsoft gives for the same job.
IMPORTANT: sign in to the server with an account that has administrator rights. Some roles need a restart to finish installing, so plan a moment when the server can restart.
1. Open the Add Roles and Features Wizard
1.1 Open Server Manager.
1.2 In the top right corner, click Manage and then Add Roles and Features. You can also click Add roles and features on the Dashboard.
![]()
1.3 The first page, Before You Begin, only gives information. Click Next.
2. Choose the installation type
2.1 Select Role-based or feature-based installation. The wizard describes it as a way to configure a single server by adding roles, role services and features.
2.2 Click Next.
![]()
The other option, Remote Desktop Services installation, is described by the wizard as a way to create a virtual machine-based or session-based desktop deployment. To add Remote Desktop role services to a single server, as we did, we used the role-based option.
3. Select the destination server
3.1 Leave Select a server from the server pool selected and click your server in the list. On our test server the list showed one computer, with its operating system: Microsoft Windows Server 2022 Standard Evaluation.
3.2 Click Next.
![]()
According to Microsoft, the list can also show remote servers you added to Server Manager, and the option Select a virtual hard disk installs roles on an offline VHD. We did not test either for this article.
4. Select the server roles
4.1 Tick the role you need. On our test server we ticked Remote Desktop Services. A role that is already partly installed shows a filled box, like File and Storage Services on our server.
4.2 Microsoft says the wizard warns you about dependencies and adds the management tools by default. If it shows a window with the tools a role needs, check the list and confirm it.
4.3 Click Next.
![]()
5. Select features (optional)
5.1 On Select features, tick any extra feature you need, such as .NET Framework 3.5 Features. According to Microsoft, if you only want a role, you don't need to tick anything here.
5.2 Click Next. Some roles add their own pages after this one: for Remote Desktop Services, the wizard showed a Role Services page, where we picked the services to install.
![]()
Microsoft notes that some features, such as .NET Framework 3.5, can need source files. For those, the Confirmation page has a link called Specify an alternate source path.
6. Confirm and install
6.1 Check the list of roles, role services and features. As the page itself says, optional features such as administration tools can show up because they were selected automatically.
6.2 If you want the server to restart on its own when needed, tick Restart the destination server automatically if required. We left it unticked.
6.3 Click Install.
![]()
Want to repeat the same selection on another server? According to Microsoft, Export configuration settings saves it as an XML file that you can use later with PowerShell.
7. Read the results and restart
7.1 Wait for the progress bar to finish. The wizard says you can close it without stopping the installation and open the task again from Notifications in Server Manager.
7.2 Read the message under the progress bar. On our test server it said a restart was pending and that we had to restart the destination server to finish the installation.
7.3 Click Close and restart the server if the wizard asks for it.
![]()
8. The same with PowerShell
Microsoft gives these cmdlets for the same job. We did not run them on our server for this article:
8.1 List the roles and features:
Get-WindowsFeature
8.2 Install roles with their management tools. This is Microsoft's example:
Install-WindowsFeature -Name DNS,DHCP -IncludeManagementTools
According to Microsoft, adding -Restart restarts the server without asking, and the result shows whether a restart is needed.
8.3 To remove a role, Microsoft lists Uninstall-WindowsFeature, or the Remove Roles and Features option in the same Manage menu.
9. Windows Server at Licendeals
Before you add roles, check which edition your server runs and whether it is still an evaluation. Our test server showed Standard Evaluation in step 3: we explain how to move an evaluation to a full license with a key in How to Convert Windows Server Evaluation to a Full License. Not sure between editions? Read Windows Server Standard vs Datacenter vs Essentials.
If you added the Remote Desktop Services role, read how the licensing works in How to Install RDS CALs on Windows Server 2022 and 2025.
At Licendeals, your key stays hidden until you click Get my license. Reveal it when your server is ready, so you can use it right away. If a license doesn't work, tell us within 24 hours of revealing it and we will replace it right away.
10. Frequently asked questions
Open Server Manager, click Manage in the top right corner and then Add Roles and Features. On our test server the same link was also on the Server Manager Dashboard.
In the wizard they are two separate pages. Roles are listed on Select server roles, such as Remote Desktop Services or Web Server (IIS). Features are listed on Select features, such as .NET Framework 3.5. According to Microsoft, you can add a role without ticking any feature.
Sometimes. Microsoft says some roles and features need a restart. On our test server, the Remote Desktop Services role asked for one at the end.
Yes. According to Microsoft, Install-WindowsFeature installs roles and features, and Get-WindowsFeature lists them. We did not test the cmdlets for this article.
Our test server was running Windows Server 2022 Standard Evaluation when we added the Remote Desktop Services role, and the wizard worked the same way.
We tested the wizard only on Windows Server 2022. Microsoft's guide describes the same wizard and cmdlets for Windows Server, so check what your own server shows.
Checked on: our Windows Server 2022 test server (October 12, 2026) and Microsoft's guide Add or remove roles and features in Windows Server, read on 2026-12-01. Microsoft can change its guidance; check it if something looks different on your screen.
Still stuck? Tell us which role you are trying to add and our team will help you, with 24/7 support. Get your Windows Server 2022 Standard, Windows Server 2022 Datacenter, Windows Server 2025 Standard or browse all Windows Server license keys at Licendeals.