Configuring SharePoint with PowerShell

Configuring SharePoint with PowerShell is quite easy, rather than running the Configuration Wizard post-installation. The primary advantage is to give you control over the Administration database. This method works with SharePoint 2010 and SharePoint 2013.

After installing SharePoint, run the SharePoint Management Shell as Administrator.

New-SPConfigurationDatabase -DatabaseName Config -DatabaseServer SPSQL -AdministrationContentDatabase Admin -FarmCredentials (Get-Credential) -Passphrase (ConvertTo-SecureString "Password1" -AsPlainText -Force)
New-SPCentralAdministration -Port 8080 -WindowsAuthProvider NTLM
Install-SPFeature -AllExistingFeatures
Install-SPHelpCollection -All

TechNet also has this information, I just had to scroll too much. And now I have a source to directly copy and paste from :-)

Trevor Seward is a Microsoft Office Apps and Services MVP who specializes in SharePoint Server administration, hybrid scenarios, and SharePoint Online. He has been working with SharePoint for 16 years from SharePoint 2003 on up, managing environments with terabytes of content for 150,000+ user organizations. Trevor is an author of Deploying SharePoint 2016 and Deploying SharePoint 2019. You can find him on Twitter and in /r/sharepoint.