How to install all roles and features of one server on another

How to install all roles and features of one server on another

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...