Search

How to Remove Roles and Features in Windows Server

In this lesson, let us learn how to remove Roles and Features from a Windows Server using Server Manager. In this example, we are going to remove "DHCP Server" Role and "Remote Server Administration Tools > Role Administration Tools > DHCP Server Tools" Feature from a Windows Server 2025 computer.

If you are new to Roles and Features in Windows Server, please click the following links to learn what are Roles and Features in Windows Server, Roles in Windows Server and Features in Windows Server.

Click the following links to learn how to add Roles and Features in Windows Server using Server Manager, how to add Roles and Features using PowerShell and how to remove Roles and Features using PowerShell.

Please watch below steps to learn how to remove Roles and Features from a Windows Server.

Step 01 – First, open Server Manager tool by typing Server Manager at Windows Server search box and then by clicking the search result. In Server Manager, click "Manage" and then select "Remove Roles and Features" from the drop-down menu, as shown in below image.

remove-roles-features-server-manager.jpg

 

Step 02 – "Remove Roles and Features Wizard" will be opened as shown in below image. A general introduction about "Remove Roles and Features Wizard" is shown in the first screen. Click the "Next" button in this first screen of the "Remove Roles and Features Wizard".

remove-roles-features-server-wizard-before-begin.jpg

 

Step 03 – Select the Windows Server from where you want to remove the Role and/or Feature (Destination Server). As per your requirement, you may remove Roles and Features from a Virtual Hard Disk file also.

In this case, I had selected the local server "OMNISECU–12", which is a Windows Server 2025 based server. Click the "Next" button to continue. Please refer below image.

remove-roles-and-features-select-destination.jpg

 

Step 04 – In "Remove server roles" screen of the "Remove Roles and Features Wizard", uncheck the Role you want to remove from the Destination Server. In this example, I had unchecked the "DHCP Server" role to remove.

remove-roles-features-select-server-roles.jpg

 

When you click the checkbox to uncheck and remove the Role, you will be prompted to remove the Feature added to manage the selected Role also. In this case, I had opted to remove the Feature. Here, you will be prompted to remove the "Remote Server Administration Tools > Role Administration Tools > DHCP Server Tools" Feature. Click "Remove Features" button, as shown in below image.

remove-feature-administration-tools.jpg

 

You can see that the Checkbox is unchecked and the Role is selected for Removal. After making sure that the checkbox is unchecked for the required Role, click the "Next" button to continue, as shown in below screenshot.

role-is-selected-for-removal.jpg

 

In case, if you are not sure what DHCP (Dynamic Host Configuration Protocol) is, please refer the following links to learn more about DHCP.

What is DHCP and How DHCP works

DHCP Message format

DHCP Messages

DHCP Message Options

 

Step 05 – "Remove Roles and Features Wizard", "Remove features" screen, the "Remote Server Administration Tools > Role Administration Tools > DHCP Server Tools" Feature is unchecked for removal, as shown in below image. Click the "Next" button to continue.

feature-is-selected-for-removal.jpg

 

Step 06 – In "Confirm removal selections" screen of the "Remove Roles and Features Wizard", check "Restart the destination server automatically if required" checkbox, if you want to restart the Destination Windows Server automatically (if required) after removing the selected Roles and Features from the destination Windows Server. Click "Remove" button to remove the selected Roles and Features, as shown in below screenshot.

remove-roles-and-features-confirm-role-removal.jpg

 

Step 07 – Click the "Close" button to complete removing the Role and Feature from the Windows Server and to exit "Remove Roles and Features Wizard", as shown in below image.

The selected Role and Feature are now removed from the destination Windows Server. Please refer below image.

remove-roles-and-features-succeeded.jpg

 

Written by Jajish Thomas.
Last updated on 10th July, 2024.

 

Related Tutorials
Introduction to Windows Server 2025
Minimum hardware requirements for Windows Server 2025
New features of Windows Server 2025
How to download Windows Server 2025 Preview iso file
How to install Windows Server 2025
Differences between Server Core and GUI (Desktop Experience)
Default GUI tools in Server Core
How to run PowerShell as administrator
How to run PowerShell as administrator in Server Core
How to find the PowerShell version in Server Core and Desktop experience
How to add Network icon to desktop in Windows Server 2025
How to add Computer (This PC) icon to desktop in Windows Server 2025
How to rename a computer using Windows Explorer
How to rename computer using "Rename-Computer" PowerShell Cmdlet
How to configure IPv4 Address in Windows Server 2025
How to configure IPv4 address in Windows Server 2025 using PowerShell Cmdlets
How to configure IPv6 Address in Windows Server 2025
How to configure IPv6 Address in Windows Server 2025 using PowerShell
What is MMC (Microsoft Management Console) and what are MMC snapin files
Add a snapin to MMC console
What are Roles and Features and difference between Roles and Features in Windows Server
Roles in Windows Server
Features in Windows Server
How to add Roles and Features in Windows Server
How to Remove Roles and Features in Windows Server
How to add Roles and Features using PowerShell
How to remove Roles and Features using PowerShell
Different types of computer hardware devices
What is a Driver Software
What is Device Manager and how to open Device Manager
What is Plug and Play (PnP)
How to scan for hardware changes using Device Manager and pnputil.exe
How to disable a device using Device Manager
How to disable a device using PowerShell Disable-PnpDevice Cmdlet
How to enable a device using PowerShell Enable-PnpDevice Cmdlet
How to update drivers using Device Manager
What is Driver Signing in Windows Operating Systems
What is Roll back of a driver and how to Roll Back a driver
How to uninstall a device using Device Manager
What are File attributes in Windows Operating Systems
attrib command in Windows
How to hide files and folders using Windows File Explorer
How to hide files and folders using attrib.exe command
How to view hidden files using Windows File Explorer
What are file name extensions
What are known file extensions and how to view known file extensions
How to associate a file name extension with an app
Hide or Show known file name extensions in Windows Server 2025
Hide or Show protected operating system files in Windows Server 2025
What are multi–user Operating Systems (OS) and multi–task Operating Systems (OS)
What are local user accounts and local groups in Windows Server
Different types of user accounts in Windows Server
How to create a local user in Windows Server
How to create a local user in Windows Server using New-LocalUser PowerShell cmdlet
How to force a local user to change password on next login
How to enable or disable a local user account
How to allow or prevent a local user to change password
What are Security Principals and SIDs
How to find SIDs of local user accounts