Today I’m rebuilding some of my demo servers in my demo environment and before I can install the software, some pre-requisites need to be checked. You need to check if some Windows Server Roles are installed before starting the installation.
Off course you can just use the Server Manager to check the Roles and if necessary install the missing server roles.
But it’s much cooler to use PowerShell to check if you have installed the needed server roles
Just open Windows PowerShell, load the ServerManager Module and run the Get-WindowsFeature Cmdlet. That’s all to it.
And if you want to can also add the missing roles using the Add-WindowsFeature Cmdlet.
Have fun learning PowerShell!