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.





