Ever wanted to install all the roles and features that are installed on one server on another server? Easy. Just copy and paste the following command into an elevated powershell on the server where the roles and features are installed. Then copy the output and paste it into an elevated powershell on the other server:

Get-WindowsFeature | ? { $_.Installed } | Select Name | ForEach-Object { "Install-WindowsFeature $($_.Name)" }

Pin It on Pinterest

Shares
Share This