What PowerShell cmdlets are available for listing Windows Server roles and features?
The primary PowerShell cmdlet for listing installed roles and features on Windows Server is Get-WindowsFeature from the ServerManager module. This cmdlet remains unchanged as of Windows Server 2025 and supports both local and remote querying with comprehensive filtering options.
Let's start by verifying your PowerShell environment is ready. Open PowerShell as Administrator and check the ServerManager module availability.
Get-Module -ListAvailable ServerManagerThis displays the ServerManager module version. On Windows Server 2025, you'll see version 2.0.0.0 or later. Import the module explicitly if it's not auto-loaded:
Import-Module ServerManagerVerification: Run Get-Command Get-WindowsFeature to confirm the cmdlet is available.
Related: How to Install and Configure DHCP Server on Windows Server
Related: Install Hyper-V on Windows Server Using 3 Different Methods
Related: How to Uninstall Internet Explorer from Windows Server
How do you list all available Windows Server roles and features using PowerShell?
Start by examining all roles and features on your local server. This gives you the complete inventory before applying any filters.
Get-WindowsFeatureThis command displays three key columns: Name (short identifier), DisplayName (descriptive name), and InstallState (Available, Installed, or Removed). The output shows hundreds of features available on your Windows Server installation.
Format-Table -AutoSize for better column alignment on wide displays, especially when working with long feature names.Verification: Count total features with (Get-WindowsFeature).Count - expect 400+ items on a full Windows Server installation.



