Get-WindowsFeature to find the name, then Install-WindowsFeature -Name Web-Server -IncludeManagementTools. Add -Restart if the role needs a reboot. This works the same on Windows Server 2019, 2022 and 2025.
Before you start
- Sign in as an administrator with Remote Desktop.
- Only install what you use. Every role adds services and sometimes open ports, which means more to update and secure.
- Some roles need a restart. Plan it for a quiet time if the server already runs a website or game.
What is the difference between a role, a role service and a feature?
How to install roles and features with Server Manager
1
Open the wizard
Open Server Manager (it starts at sign-in on Desktop Experience, or type
Server Manager in Start). Select Manage in the top-right corner, then Add Roles and Features.2
Before You Begin
Read the page and select Next.
3
Installation Type
Choose Role-based or feature-based installation and select Next. (The other option is only for Remote Desktop Services.)
4
Server Selection
Your server is selected already. Select Next.
5
Server Roles
Tick the roles you want. When the wizard asks to add required features, select Add Features. Select Next.
6
Features
Tick any features you want, or none, and select Next. Pages for each role’s role services follow; keep the defaults if you’re unsure.
7
Confirmation
Review the list. Tick Restart the destination server automatically if required if a restart now is fine, then select Install.
8
Close
When the installation finishes, select Close. If a role needs more setup, Server Manager shows a notification at the top; select it to see what.
How to install roles and features with PowerShell
Open PowerShell as administrator: select Start, typePowerShell, right-click Windows PowerShell and choose Run as administrator. On Server Core this is the only way, since there is no Server Manager.
1
Find the exact name
Web-Server for Web Server (IIS). The Install State column shows what’s already installed.2
Preview the install (optional)
-WhatIf shows what would be installed without changing anything.3
Install
Install-WindowsFeature doesn’t add management tools unless you include -IncludeManagementTools (Microsoft Learn). To install several at once, separate the names with commas, for example -Name DNS,DHCP.4
Restart if needed
The result shows
Restart Needed. If it says Yes, restart with Restart-Computer, or add -Restart to the install command next time so Windows restarts on its own.How to check what is installed
How to remove a role or feature
- Server Manager
- PowerShell
Select Manage > Remove Roles and Features, untick the role or feature on Server Roles or Features, then select Remove on Confirmation.
What if the install says source files could not be found?
Some features, such as .NET Framework 3.5, aren’t stored on the server. By default Windows downloads the missing files from Windows Update. If that fails, pointInstall-WindowsFeature to the installation media with -Source (the Sources\SxS folder of a mounted Windows Server ISO, or a WIM file such as WIM:D:\sources\install.wim:2), or in the wizard select Specify an alternate source path on the Confirmation page (Microsoft Learn).
Frequently asked questions
Which roles should a typical VPS have?
Only what it serves. A web server needs Web Server (IIS). A game server usually needs no extra roles at all. Avoid Active Directory Domain Services, DHCP Server and DNS Server unless you know you need them.Can I install roles on Server Core?
Yes, withInstall-WindowsFeature. Some roles that depend on a graphical interface aren’t available on Server Core; Get-WindowsFeature shows what is.
Do roles need a licence?
Most roles are part of Windows Server. Remote Desktop Services is the common exception: multi-user Remote Desktop needs RDS client access licences. See add a Remote Desktop user.How do I install IIS specifically?
See install IIS on Windows Server.Related guides
VPS and dedicated server guides
Every guide in this section.
Install IIS
Host websites on Windows.
Enable OpenSSH Server
An optional feature, installed differently.
PowerShell on Windows Server
The basics behind these commands.
Back up a Windows server
Before you add or remove roles.
Checked against Microsoft Learn: Add or remove roles and features, Install-WindowsFeature and Get-WindowsFeature on 4 November 2026. Not tested on a live Windows server for this page.
Need Extra Help?
If you encounter any issues, our support team is ready to assist:- Live Chat: Quick assistance via our website.
- Support Ticket: Open a Ticket
- Discord: Join our Community
- Email: support@freakhosting.com
Last Updated: November 2026