List the Roles and Features Installed on Windows Server 2016, 2019, and 2022
search cancel

List the Roles and Features Installed on Windows Server 2016, 2019, and 2022

book

Article ID: 204707

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

Broadcom Support has asked you to provide a list of the Rolls and Features installed on your Windows Server 2016 ,Windows 2019 server, Windows Server 2022

Environment

Windows Server 2016

Windows Server 2019

Windows Server 2022

Resolution

The following PowerShell command can be used to list the Rolls and Features installed on Windows Server 2016 and 2019 and pipe the information into a file:

Note: the directory you list below must already exist:

At a PowerShell prompt type the command below.

Get-WindowsFeature *> [Drive Name]:\[Directory Name]\[Filename]

For Example: Get-WindowsFeature *> C:\windows\Temp\RolesAndFeatures.txt