Installing SharePoint 2010 Central Admin using Powershell

After installing SharePoint I cancel the final setup wizard and configure Central Admin using Powershell.  The advantage of this is a guid free database name.  Its also a handy way to setup SharePoint if you are doing multiple installs as its much quicker to run a script.  In the earlier days of SharePoint 2010 the service application databases would also be created with guid’s when configured through the wizard.  However recent updates allow most service applications to be configured through the wizard without the guid’s.

New-SPConfigurationDatabase DatabaseName SP_Config_DB DatabaseServer sharepointdb AdministrationContentDatabaseName SP_Admin_Content_DB Passphrase (ConvertTo-SecureString testingsharepoint AsPlaintext Force) FarmCredentials (Get-Credential)