Installing or Upgrading CRM

During an install of CRM, quite a bit gets configured. Take a look here https://technet.microsoft.com/en-us/library/hh699706.aspx for more information.

Remote Powershell install

for examples on installing CRM with powershell this page generates a powershell script that is supposed to perform the install. Link. A word of caution, I have not run any of the scripts and I would be leary to put any of my real server info into the form. But at a minimum it will get you and example.